Alerting: fix flakey test (#46845)

This commit is contained in:
Gilles De Mey 2022-03-22 21:20:58 +01:00 committed by GitHub
parent ee9badecdf
commit 4a568769e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());