From: guillaume-peoch-sonarsource Date: Fri, 1 Sep 2023 08:09:40 +0000 (+0200) Subject: [NO JIRA] Fix Flaky Test - User load more in managed mode X-Git-Tag: 10.3.0.82913~494 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4ef6f1f3c7691c6b5526f5ab30e350f61d4082c4;p=sonarqube.git [NO JIRA] Fix Flaky Test - User load more in managed mode --- 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 33c49335d6b..e2659be46bf 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 @@ -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 () => {