From: guillaume-peoch-sonarsource Date: Wed, 30 Aug 2023 16:11:32 +0000 (+0200) Subject: SONAR-20294 Fix flaky jest test UserApp X-Git-Tag: 10.2.0.77647~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=edda9752af5ed80945f6394f682a3e1303079ddc;p=sonarqube.git SONAR-20294 Fix flaky jest test UserApp --- 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 () => {