Skip to content

Commit ab1a337

Browse files
committed
fix for notification test
1 parent 07775f1 commit ab1a337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/tests/critical-path/notifications/notification-center.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ test('Verify that user can open notification center by clicking on icon and see
7979
await t.expect(notificationPage.notificationBody.withExactText(jsonNotifications[i].body).exists).ok('Displayed body');
8080
await t.expect(notificationPage.notificationDate.withExactText(await notificationPage.convertEpochDateToMessageDate(jsonNotifications[i])).exists).ok('Displayed date');
8181
// Verify that user can see notification with category badge and category color in the notification center
82-
if (!jsonNotifications[i].category !== undefined) {
82+
if (jsonNotifications[i].category !== undefined) {
8383
await t.expect(notificationPage.notificationCategory.withExactText(jsonNotifications[i].category ?? '').exists).ok(`${jsonNotifications[i].category} category name not displayed`);
8484
await t.expect(notificationPage.notificationCategory.withExactText(jsonNotifications[i].category ?? '').withAttribute('style', `background-color: rgb${jsonNotifications[i].rbgColor}; color: rgb(0, 0, 0);`).exists).ok('Category color');
8585
}

0 commit comments

Comments
 (0)