From 4fa749fd125f7a0a36bc51530b6933e2abc92513 Mon Sep 17 00:00:00 2001 From: Blanka Hooz <31451993+blnkhz@users.noreply.github.com> Date: Tue, 17 Nov 2026 13:27:41 -0800 Subject: [PATCH] e2e: allow a slower tab switch on CI in the responsiveness test GitHub's macOS runners took 600-1039 ms and failed it at random; a blocked window would wait for the whole job (several seconds), so 2 s on CI still catches that. Locally it stays 500 ms. Co-Authored-By: Claude Opus 5.5 --- apps/desktop/e2e/app.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/desktop/e2e/app.spec.ts b/apps/desktop/e2e/app.spec.ts index e40eb10..a0f8ef5 100644 --- a/apps/desktop/e2e/app.spec.ts +++ b/apps/desktop/e2e/app.spec.ts @@ -64,7 +64,9 @@ test('heavy processing runs in the background; the window stays responsive (PREV await page.getByRole('tab', { name: 'Page' }).click(); await expect(page.getByRole('tab', { name: 'Page' })).toHaveAttribute('aria-selected', 'true'); const tabMs = Date.now() - t0; - expect(tabMs).toBeLessThan(500); + // Blocked by the processing, the switch would wait for the whole job (several seconds). CI's + // shared runners are slow and noisy (600–1000 ms seen there), so allow more on CI. + expect(tabMs).toBeLessThan(process.env['CI'] ? 2000 : 500); await expect(page.getByRole('status')).toHaveCount(0, { timeout: 60000 }); await expect(page.getByText(/paths · draw/)).toBeVisible(); console.log(`tab switch while processing: ${tabMs} ms`);