From 4a568769e7ac180135926b0283517cc1de9b3468 Mon Sep 17 00:00:00 2001 From: Gilles De Mey Date: Tue, 22 Mar 2022 21:20:58 +0100 Subject: [PATCH] Alerting: fix flakey test (#46845) --- public/app/features/alerting/unified/RuleEditor.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/features/alerting/unified/RuleEditor.test.tsx b/public/app/features/alerting/unified/RuleEditor.test.tsx index b1fa89e3945..53e330ce300 100644 --- a/public/app/features/alerting/unified/RuleEditor.test.tsx +++ b/public/app/features/alerting/unified/RuleEditor.test.tsx @@ -132,6 +132,7 @@ describe('RuleEditor', () => { await renderRuleEditor(); await waitFor(() => expect(mocks.searchFolders).toHaveBeenCalled()); + await waitFor(() => expect(mocks.api.fetchRulerRulesGroup).toHaveBeenCalled()); userEvent.type(await ui.inputs.name.find(), 'my great new rule'); userEvent.click(await ui.buttons.lotexAlert.get());