diff --git a/tests/visual/tech-log.visual.spec.ts b/tests/visual/tech-log.visual.spec.ts index f0a258c..1e8823f 100644 --- a/tests/visual/tech-log.visual.spec.ts +++ b/tests/visual/tech-log.visual.spec.ts @@ -60,13 +60,19 @@ for (const [state, path] of TECH_LOG_STUDIO_STATE_PATHS) { }); } +// 6784eb1 (08-20). The server serves every registered Public route pattern, +// so a slug nobody published gets the SPA and its in-shell not-found page, +// not the edge's plain-text "Not Found" (that stays for paths no route +// declares: NOT_FOUND above). for (const [route, path] of TECH_LOG_UNKNOWN_PUBLIC_PATHS) { for (const width of [360, 1440] as const) { - test(`unknown Public ${route} matches the source ${width}px response`, async ({ page }) => { + test(`unknown Public ${route} shows the in-shell not-found at ${width}px`, async ({ page }) => { await page.setViewportSize({ width, height: 1000 }); await gotoTechLog(page, path); - await expect(page.getByText("Not Found", { exact: true })).toBeVisible(); - await expect(page.locator(".site-frame")).toHaveCount(0); + await expect( + page.getByRole("heading", { level: 1, name: "페이지를 찾을 수 없습니다." }), + ).toBeVisible(); + await expect(page.locator(".site-frame")).toHaveCount(1); await expect(page).toHaveScreenshot(`tech-log-unknown-${route}-${width}.png`, { fullPage: true, });