]> source.dussan.org Git - sonarqube.git/commitdiff
[NO JIRA] Fix Flaky Test - User load more in managed mode
authorguillaume-peoch-sonarsource <guillaume.peoch@sonarsource.com>
Fri, 1 Sep 2023 08:09:40 +0000 (10:09 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 1 Sep 2023 20:03:03 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/users/__tests__/UsersApp-it.tsx

index 33c49335d6bfb2fe10ce760599a0295ab3fd9217..e2659be46bfe646df8157062e2e41abb74018b2c 100644 (file)
@@ -277,7 +277,7 @@ describe('in non managed mode', () => {
       await user.click(await ui.showMore.find());
     });
 
-    expect(ui.userRows.getAll()).toHaveLength(8);
+    expect(await ui.userRows.findAll()).toHaveLength(8);
   });
 
   it('should be able to edit the groups of a user', async () => {