Skip to content

Commit 3497870

Browse files
committed
try to wait for java ready
1 parent 69857de commit 3497870

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

playwright/tests/performance/portal-start.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)