From 5d44f3cfa481462fadd8598c8363dcff1617a235 Mon Sep 17 00:00:00 2001 From: Matt Ciaccio Date: Wed, 29 Apr 2026 15:15:26 +0200 Subject: [PATCH] fix(test): raise mobile-audit timeout to 30min for 4-viewport runs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task 24 audit run hit the 10-minute test.setTimeout ceiling after capturing 2 of 4 viewport passes (iphone-se complete, iphone-16 complete-ish, 16-pro partial, pro-max not started). 4 viewports × ~45 routes × slowMo: 200 needs more headroom than 600s gave. 30min is comfortable headroom; the per-test project timeout is matched. Co-Authored-By: Claude Opus 4.7 (1M context) --- playwright.config.ts | 4 +++- tests/e2e/audit/mobile.spec.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index a53fedc..9591a0c 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -82,7 +82,9 @@ export default defineConfig({ name: 'mobile-audit', testMatch: /audit\/mobile\.spec\.ts/, dependencies: ['setup'], - timeout: 600_000, + // Single test walks 4 viewports × ~45 routes sequentially with slowMo; + // 30 min headroom keeps us well under the wall-clock cost. + timeout: 1_800_000, use: { headless: false, launchOptions: { slowMo: 200 }, diff --git a/tests/e2e/audit/mobile.spec.ts b/tests/e2e/audit/mobile.spec.ts index 1810e84..9b00183 100644 --- a/tests/e2e/audit/mobile.spec.ts +++ b/tests/e2e/audit/mobile.spec.ts @@ -340,7 +340,7 @@ async function writeIndex(allByViewport: Map): Promise } test('mobile audit — every page at iPhone viewports', async ({ browser, request }) => { - test.setTimeout(600_000); + test.setTimeout(1_800_000); await fs.mkdir(OUT_ROOT, { recursive: true }); await ensureAdminExists(request);