From 1dd213964d9fe603be4fcf7caa0f905ca8fddac4 Mon Sep 17 00:00:00 2001 From: faysou Date: Tue, 24 Nov 2026 16:12:31 +0000 Subject: [PATCH] test(boot): allow the workbench to mount within the startup deadline (#5636) The slow-start boot test waited for the workbench's first render with Playwright's 10-second default, while OpenIDEA allows startup 60 seconds, so it failed on CI when Chromium was still loading the workbench. The test now runs with a 60-second timeout and uses it for that wait; it still advances the clock past the startup deadline and checks that the failure screen never appears. Co-authored-by: faysou <893862+faysou@users.noreply.github.com> --- e2e/boot.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/boot.spec.ts b/e2e/boot.spec.ts index f8854dcb1..1436adf71 100644 --- a/e2e/boot.spec.ts +++ b/e2e/boot.spec.ts @@ -55,6 +55,7 @@ test("a rejected boot shows Chinese diagnostics without application modules", as }); test("a slow module load succeeds before the deadline and cancels the startup timer", async ({ page }) => { + test.setTimeout(60_000); await page.clock.install(); await page.addInitScript(() => { new MutationObserver((records) => { @@ -80,7 +81,7 @@ test("a slow module load succeeds before the deadline and cancels the startup ti await page.clock.runFor(15_000); await expect(page.locator("#boot-error")).toHaveCount(0); release(); - await expect(page.locator("#root")).not.toBeEmpty(); + await expect(page.locator("#root")).not.toBeEmpty({ timeout: test.info().timeout }); await page.clock.runFor(4000); await expect(page.locator("#splash")).toHaveCount(0); await page.clock.runFor(50_000);