Alerting: Fix flakey test in CloneRuleEditor (#73997)

This commit is contained in:
Gilles De Mey
2023-08-29 14:12:37 +03:00
committed by GitHub
parent 10a82e30ba
commit c761f2e4d9
@@ -164,7 +164,9 @@ describe('CloneRuleEditor', function () {
});
await waitForElementToBeRemoved(ui.loadingIndicator.query());
await waitForElementToBeRemoved(within(ui.inputs.group.get()).getByTestId('Spinner'));
await waitFor(() => {
expect(within(ui.inputs.group.get()).queryByTestId('Spinner')).not.toBeInTheDocument();
});
await waitFor(() => {
expect(ui.inputs.name.get()).toHaveValue('First Grafana Rule (copy)');