From: Aryan-coder06 Date: Tue, 31 Mar 2026 12:23:08 +0000 (+0530) Subject: mgr/dashboard: keep notification tests in the past X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F68129%2Fhead;p=ceph.git mgr/dashboard: keep notification tests in the past Signed-off-by: Aryan-coder06 --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-area/notification-area.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-area/notification-area.component.spec.ts index 3065eca6c871..85659e2944b4 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-area/notification-area.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-area/notification-area.component.spec.ts @@ -185,12 +185,12 @@ describe('NotificationAreaComponent', () => { const infoNotification = createNotification( NotificationType.info, 'Info Today', - new Date(today.getTime() + 1000).toISOString() + new Date(today.getTime() - 60000).toISOString() ); const warningNotification = createNotification( NotificationType.warning, 'Warning Today', - new Date(today.getTime() + 2000).toISOString() + new Date(today.getTime() - 30000).toISOString() ); mockDataSource.next([infoNotification, warningNotification]); @@ -217,12 +217,12 @@ describe('NotificationAreaComponent', () => { createNotification( NotificationType.success, 'Success 1', - new Date(today.getTime() + 1000).toISOString() + new Date(today.getTime() - 60000).toISOString() ), createNotification( NotificationType.info, 'Info 1', - new Date(today.getTime() + 2000).toISOString() + new Date(today.getTime() - 30000).toISOString() ) ];