Fix flacky test in RulelList.test.tsx (#64725)

pull/64763/head
Sonia Aguilar 2 years ago committed by GitHub
parent faef3a8258
commit 2f95171a45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      public/app/features/alerting/unified/RuleList.test.tsx

@ -324,6 +324,7 @@ describe('RuleList', () => {
expect(groups).toHaveLength(2);
await waitFor(() => expect(groups[0]).toHaveTextContent(/firing|pending|normal/));
await waitFor(() => expect(groups[1]).toHaveTextContent(/firing|pending|normal/));
expect(groups[0]).toHaveTextContent('1 firing');
expect(groups[1]).toHaveTextContent('1 firing');

Loading…
Cancel
Save