Alerting: Fix flakey test in CloneRuleEditor (#73997)

pull/73881/head^2
Gilles De Mey 2 years ago committed by GitHub
parent 10a82e30ba
commit c761f2e4d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      public/app/features/alerting/unified/CloneRuleEditor.test.tsx

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

Loading…
Cancel
Save