From 2f95171a45713a4a2111a413f8a29890eef0dbea Mon Sep 17 00:00:00 2001 From: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com> Date: Tue, 14 Mar 2023 09:45:27 +0100 Subject: [PATCH] Fix flacky test in RulelList.test.tsx (#64725) --- public/app/features/alerting/unified/RuleList.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/features/alerting/unified/RuleList.test.tsx b/public/app/features/alerting/unified/RuleList.test.tsx index 3c9041b39f9..fcc4018909b 100644 --- a/public/app/features/alerting/unified/RuleList.test.tsx +++ b/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');