diff options
author | Revanshu Paliwal <revanshu.paliwal@sonarsource.com> | 2024-12-06 16:23:29 +0100 |
---|---|---|
committer | Steve Marion <steve.marion@sonarsource.com> | 2024-12-18 11:13:21 +0100 |
commit | 580d16d64bc1465a30704adc0be6dd8f1aabd24e (patch) | |
tree | 5c1a0bcde12efeed0d1231747dc8557e80435d58 /server/sonar-web/src/main | |
parent | d0ace9eba4fcb4e79eb10a57f1f596e4237702f7 (diff) | |
download | sonarqube-580d16d64bc1465a30704adc0be6dd8f1aabd24e.tar.gz sonarqube-580d16d64bc1465a30704adc0be6dd8f1aabd24e.zip |
SGB-216 Reducing size of render to improve the flaky test
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r-- | server/sonar-web/src/main/js/apps/code/__tests__/Code-it.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/__tests__/Code-it.ts b/server/sonar-web/src/main/js/apps/code/__tests__/Code-it.ts index 1793c56bfb1..61a727979b0 100644 --- a/server/sonar-web/src/main/js/apps/code/__tests__/Code-it.ts +++ b/server/sonar-web/src/main/js/apps/code/__tests__/Code-it.ts @@ -138,7 +138,9 @@ beforeEach(() => { it('should allow navigating through the tree', async () => { const ui = getPageObject(userEvent.setup()); renderCode(); - await ui.appLoaded(); + // We added timeout to avoid flakiness in cirrus + // This needs to be refactored with CodeApp component refactoring. + expect(await ui.componentName('Foo').find(undefined, { timeout: 3000 })).toBeInTheDocument(); // Navigate by clicking on an element. await ui.clickOnChildComponent(/folderA$/); |