From edda9752af5ed80945f6394f682a3e1303079ddc Mon Sep 17 00:00:00 2001 From: guillaume-peoch-sonarsource Date: Wed, 30 Aug 2023 18:11:32 +0200 Subject: [PATCH] SONAR-20294 Fix flaky jest test UserApp --- .../sonar-web/src/main/js/apps/users/__tests__/UsersApp-it.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/users/__tests__/UsersApp-it.tsx b/server/sonar-web/src/main/js/apps/users/__tests__/UsersApp-it.tsx index c8d2d0957e3..33c49335d6b 100644 --- a/server/sonar-web/src/main/js/apps/users/__tests__/UsersApp-it.tsx +++ b/server/sonar-web/src/main/js/apps/users/__tests__/UsersApp-it.tsx @@ -509,8 +509,8 @@ describe('in manage mode', () => { await user.click(await ui.localFilter.find()); }); + expect(await ui.aliceRowWithLocalBadge.find()).toBeInTheDocument(); expect(ui.bobRow.query()).not.toBeInTheDocument(); - expect(ui.aliceRowWithLocalBadge.get()).toBeInTheDocument(); }); it('should be able to change tokens of a user', async () => { -- 2.39.5