From 79d5590f986026a7262691685d326a39528d20ce Mon Sep 17 00:00:00 2001 From: Aryan-coder06 Date: Tue, 31 Mar 2026 17:53:08 +0530 Subject: [PATCH] mgr/dashboard: keep notification tests in the past Signed-off-by: Aryan-coder06 --- .../notification-area/notification-area.component.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() ) ]; -- 2.47.3