From 4c42fda2ec0d79ebd007489a4a21e709eebd9776 Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Fri, 13 Dec 2024 14:14:24 +0000 Subject: [PATCH] Alerting: Retry flaky notification preview test (#97936) Retry flaky notification preview test --- .../notificaton-preview/NotificationPreview.test.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/alerting/unified/components/rule-editor/notificaton-preview/NotificationPreview.test.tsx b/public/app/features/alerting/unified/components/rule-editor/notificaton-preview/NotificationPreview.test.tsx index 8444c3169f7..d947711c5c6 100644 --- a/public/app/features/alerting/unified/components/rule-editor/notificaton-preview/NotificationPreview.test.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/notificaton-preview/NotificationPreview.test.tsx @@ -121,6 +121,8 @@ describe.each([ false, ])('NotificationPreview with alertingApiServer=%p', (apiServerEnabled) => { apiServerEnabled ? testWithFeatureToggles(['alertingApiServer']) : testWithFeatureToggles([]); + jest.retryTimes(2); + it('should render notification preview without alert manager label, when having only one alert manager configured to receive alerts', async () => { mockOneAlertManager(); mockPreviewApiResponse(server, [{ labels: [{ tomato: 'red', avocate: 'green' }] }]);