From 9960a619fa8fd1f7fc72c10de01fb5778250a50c Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Sat, 26 Sep 2026 00:13:39 +0900 Subject: [PATCH] test(e2e): keep the reference en-US check in the sample's spec (08-04) The check named reference paths from i18n.spec.ts, which the sample removal keeps, so the removed fixture would carry reference residue. reference-form.spec.ts is removed with the sample. Co-Authored-By: Claude Opus 5.5 --- tests/e2e/i18n.spec.ts | 29 ----------------------------- tests/e2e/reference-form.spec.ts | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/tests/e2e/i18n.spec.ts b/tests/e2e/i18n.spec.ts index 4f97b592..bbff8e49 100644 --- a/tests/e2e/i18n.spec.ts +++ b/tests/e2e/i18n.spec.ts @@ -39,32 +39,3 @@ test("applies RTL to the shell and modal navigation without changing action sema await page.keyboard.press("Escape"); await expect(trigger).toBeFocused(); }); - -// 08-04. Feature screens take their words from the catalog too. -test("renders the reference feature screens without Korean copy in en-US", async ({ - page, -}) => { - await page.route("http://localhost:8080/api/reference-resources?*", (route) => - route.fulfill({ - json: [ - { - id: "browser-reference", - name: "Browser reference", - createdAt: "2026-07-26T00:00:00.000Z", - }, - ], - }), - ); - await page.goto("/examples/reference-resources"); - await page.getByRole("button", { name: "로그인 시작" }).click(); - await expect(page.getByRole("link", { name: "Browser reference" })).toBeVisible(); - await page.getByRole("combobox", { name: "언어" }).selectOption("en-US"); - - const main = page.getByRole("main"); - await expect(main.getByRole("status")).toHaveText("Total items: 1"); - await expect(main).not.toContainText(/[가-힣]/); - - await main.getByRole("button", { name: "Create item" }).click(); - await expect(main.getByRole("button", { name: "Save" })).toBeVisible(); - await expect(main).not.toContainText(/[가-힣]/); -}); diff --git a/tests/e2e/reference-form.spec.ts b/tests/e2e/reference-form.spec.ts index 7c4e84b5..7bf9c5ce 100644 --- a/tests/e2e/reference-form.spec.ts +++ b/tests/e2e/reference-form.spec.ts @@ -48,3 +48,33 @@ test("keeps the form template within a 320px viewport", async ({ page }) => { })); expect(viewport.scrollWidth).toBeLessThanOrEqual(viewport.clientWidth); }); + +// 08-04. Feature screens take their words from the catalog. This lives with +// the sample's specs so removing the sample removes it too. +test("renders the reference screens without Korean copy in en-US", async ({ + page, +}) => { + await page.route("http://localhost:8080/api/reference-resources?*", (route) => + route.fulfill({ + json: [ + { + id: "browser-reference", + name: "Browser reference", + createdAt: "2026-07-26T00:00:00.000Z", + }, + ], + }), + ); + await page.goto("/examples/reference-resources"); + await page.getByRole("button", { name: "로그인 시작" }).click(); + await expect(page.getByRole("link", { name: "Browser reference" })).toBeVisible(); + await page.getByRole("combobox", { name: "언어" }).selectOption("en-US"); + + const main = page.getByRole("main"); + await expect(main.getByRole("status")).toHaveText("Total items: 1"); + await expect(main).not.toContainText(/[가-힣]/); + + await main.getByRole("button", { name: "Create item" }).click(); + await expect(main.getByRole("button", { name: "Save" })).toBeVisible(); + await expect(main).not.toContainText(/[가-힣]/); +});