diff --git a/tests/e2e/old-tab-chunk-recovery.spec.ts b/tests/e2e/old-tab-chunk-recovery.spec.ts index ef4083a..e23f66a 100644 --- a/tests/e2e/old-tab-chunk-recovery.spec.ts +++ b/tests/e2e/old-tab-chunk-recovery.spec.ts @@ -21,10 +21,12 @@ import { startBuildServer } from "./support/service-worker-builds.ts"; // Template sync (af3d8e6). Upstream uses two of its example pages, which this // product deleted; two TechLog primary-navigation pages play the same part. -const PLATFORM = ROUTE_REGISTRY.TECH_LOG_EXPLORE; +// Not Explore: the home page preloads the Explore (and Profile) chunk, so a +// tab on A already holds it and never asks the server for it again. +const PLATFORM = ROUTE_REGISTRY.TECH_LOG_PROJECTS; const UI = ROUTE_REGISTRY.TECH_LOG_TOPICS; const PAGES = [ - "src/features/tech-log/presentation/public/pages/explore-page.tsx", + "src/features/tech-log/presentation/public/pages/projects-page.tsx", "src/features/tech-log/presentation/public/pages/topics-page.tsx", ] as const; @@ -63,7 +65,7 @@ async function routeChunk(dist: string, chunkId: string): Promise { // 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/route-tech-log-(?:explore|topics)-[\w-]+\.js`; +const MISSING_PAGE = String.raw`/assets/route-tech-log-(?:projects|topics)-[\w-]+\.js`; test.use({ allowedBrowserFailure: new RegExp( [