File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
playwright/tests/performance Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,13 @@ test.describe('Portal performance', () => {
77 test . use ( { workspace : portalPerformanceWorkspacePath } ) ;
88
99 test ( 'Portal home' , async ( { page } ) => {
10- await expect ( page . locator ( '#status\\.problems' ) ) . not . toHaveAttribute ( 'aria-label' , 'No Problems' ) ;
11- await page . waitForTimeout ( 1_000 ) ;
10+ await expect ( async ( ) => {
11+ const javaReady = async ( ) => await expect ( page . locator ( 'div.statusbar-item:has-text("Java: Ready")' ) ) . toBeVisible ( { timeout : 200 } ) ;
12+ for ( let i = 0 ; i < 10 ; i ++ ) {
13+ await javaReady ( ) ;
14+ await page . waitForTimeout ( 500 ) ;
15+ }
16+ } ) . toPass ( ) ;
1217 const processEditor = new ProcessEditor ( page , 'PortalStart.p.json' ) ;
1318 await processEditor . hasStatusMessage ( 'Finished: Invalidate class loader' ) ;
1419 await processEditor . executeCommand ( 'View: Hide Panel' ) ;
You can’t perform that action at this time.
0 commit comments