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", ),