From b1a36ab26bb20799f18f51c684b6ed4e7a414ca9 Mon Sep 17 00:00:00 2001 From: donghyeon-ka Date: Mon, 28 Sep 2026 01:43:57 +0900 Subject: [PATCH] test(e2e): allow WebKit's own wording for the missing old-tab chunk (11-05) WebKit reports the failed dynamic import as "TypeError: Importing a module script failed." without the chunk URL, so the strict console check rejected an expected failure. The recovery assertions already passed on WebKit; the spec now passes on chromium, firefox and webkit. Co-Authored-By: Claude Opus 5.5 --- tests/e2e/old-tab-chunk-recovery.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/e2e/old-tab-chunk-recovery.spec.ts b/tests/e2e/old-tab-chunk-recovery.spec.ts index 73001f62..9ef45f8c 100644 --- a/tests/e2e/old-tab-chunk-recovery.spec.ts +++ b/tests/e2e/old-tab-chunk-recovery.spec.ts @@ -58,8 +58,9 @@ async function routeChunk(dist: string, chunkId: string): Promise { } // Each missing page chunk fails its request and the dynamic import. Chromium -// may also log the 404 itself (without its URL), and Firefox logs the error -// object React caught. Nothing else is allowed. +// may also log the 404 itself (without its URL), Firefox logs the error +// object React caught, and WebKit logs its own import error without the URL. +// Nothing else is allowed. const MISSING_PAGE = String.raw`/assets/(?:platform-overview|ui-gallery)-page-[\w-]+\.js`; test.use({ allowedBrowserFailure: new RegExp( @@ -69,6 +70,7 @@ test.use({ String.raw`^console:error:\[JavaScript Error: "Loading module from “http://127\.0\.0\.1:\d+${MISSING_PAGE}” was blocked`, String.raw`^console:error:Failed to load resource: the server responded with a status of 404 \(Not Found\)$`, String.raw`^console:error:JSHandle@object$`, + String.raw`^console:error:TypeError: Importing a module script failed\.$`, ].join("|"), "u", ),