From 0dc11797a93ff4496503bcd972a4fd07eb5237d8 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 12 Nov 2026 16:59:57 +0900 Subject: [PATCH] =?UTF-8?q?test(e2e):=20=EC=98=A4=EB=9E=98=EB=90=9C=20?= =?UTF-8?q?=ED=83=AD=20=EC=8B=9C=ED=97=98=EC=9D=B4=20=EC=83=88=20=ED=99=94?= =?UTF-8?q?=EB=A9=B4=EC=9D=98=20h1=EC=9D=84=20=EA=B8=B0=EB=8B=A4=EB=A6=B0?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 오래된 탭 시험은 A 빌드 탭에서 「프로젝트」를 누른 뒤 getByRole("heading", { name: "프로젝트" })가 보이면 다시 불러오기가 한 번 있었는지 센다. 그런데 탭이 아직 머물러 있는 홈 화면에도 h2 「프로젝트」가 있다. 그래서 A의 프로젝트 청크가 404가 나고 다시 불러오기가 시작되기 전에 조건이 맞고, 다시 불러오기 0번으로 떨어진다. 청크가 잘게 나뉜 뒤(부팅 실패 청크 수정) 다시 불러오기가 조금 늦어지면서 firefox·webkit에서 드러났다. PR #7에서 이 화면을 고를 때 이 h2를 보지 못했다. 새 화면의 h1을 기다린다. 검증: firefox trace에서 A의 route-tech-log-projects 청크가 404였고 그 뒤 release-manifest를 다시 받는 중이었다(다시 불러오기 직전). 고친 뒤 chromium·firefox·webkit에서 통과. --- tests/e2e/old-tab-chunk-recovery.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);