]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20294 Fix flaky jest test UserApp
authorguillaume-peoch-sonarsource <guillaume.peoch@sonarsource.com>
Wed, 30 Aug 2023 16:11:32 +0000 (18:11 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 31 Aug 2023 20:02:57 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/users/__tests__/UsersApp-it.tsx

index c8d2d0957e3db1ea7a0cd1f6725a8920beb679da..33c49335d6bfb2fe10ce760599a0295ab3fd9217 100644 (file)
@@ -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 () => {