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 <[email protected]>
Цей коміт міститься в:
faysouтаfaysou authored and GitHub committed 2026-11-25 00:12:31 +08:00
1 джерело 5636fc0ecd
коміт 1dd213964d
1 file changed
+2 -1
+2 -1
Переглянути файл
@@ -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);