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

This commit is contained in:
Sonia Aguilar 2023-03-14 09:45:27 +01:00 committed by GitHub
parent faef3a8258
commit 2f95171a45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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