diff --git a/tests/e2e/TestHelpers/Api.ts b/tests/e2e/TestHelpers/Api.ts index 95a34f7c..afd18149 100644 --- a/tests/e2e/TestHelpers/Api.ts +++ b/tests/e2e/TestHelpers/Api.ts @@ -611,7 +611,7 @@ async function getNotificationsHub( }; return get(page, { - url: `/users/${handle.replace("@", "")}/notifications/hub?status=read%2Cunread&limit=12`, + url: `/users/${handle.replace("@", "")}/notifications/hub?status=read%2Cunread&limit=24`, status: 200, data: data, }); diff --git a/tests/e2e/TestHelpers/Data.ts b/tests/e2e/TestHelpers/Data.ts index 83c32b2c..386dbdd7 100644 --- a/tests/e2e/TestHelpers/Data.ts +++ b/tests/e2e/TestHelpers/Data.ts @@ -675,6 +675,10 @@ function notificationStatus(): NotificationStatus { return faker.helpers.arrayElement(["unread", "read", "archived"]); } +function notificationStatusWithoutArchived(): NotificationStatus { + return faker.helpers.arrayElement(["unread", "read"]); +} + type Notification = { id: string; event: NotificationEvent; @@ -688,7 +692,7 @@ function notification(notif?: { return { event: notificationEvent(notif?.kind), id: faker.string.uuid(), - status: notif?.status || notificationStatus(), + status: notif?.status || notificationStatusWithoutArchived(), }; }