diff --git a/tests/e2e/old-tab-chunk-recovery.spec.ts b/tests/e2e/old-tab-chunk-recovery.spec.ts index e23f66a..bbf78e3 100644 --- a/tests/e2e/old-tab-chunk-recovery.spec.ts +++ b/tests/e2e/old-tab-chunk-recovery.spec.ts @@ -107,7 +107,11 @@ test("an old tab reloads once into the new build, then stops reloading", async ( .getByRole("link", { name: PLATFORM.navigationLabel!, exact: true }) .click(); - await expect(page.getByRole("heading", { name: PLATFORM.title })).toBeVisible(); + // The page's h1: the home page the tab is still on has an h2 「프로젝트」 + // of its own, which matched before the reload had happened. + await expect( + page.getByRole("heading", { level: 1, name: PLATFORM.title }), + ).toBeVisible(); expect(loads).toBe(1); const served = server.served.map((entry) => entry.path); expect(served).not.toContain(aPlatform);