import { expect, test } from "../support/browser/strict-browser-test.ts"; import { ROUTE_REGISTRY } from "../../src/features/installed-feature-contracts.ts"; test("opens the protected integration route through the local demo seam", async ({ page, }) => { const protectedRoute = ROUTE_REGISTRY.REFERENCE_RESOURCE_LIST; 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(protectedRoute.path); await expect( page.getByRole("heading", { name: "세션이 필요합니다." }), ).toBeVisible(); await page.getByRole("button", { name: "로그인 시작" }).click(); // The h1 comes from the ko-KR message catalog, not the route title (0929/08-02). await expect( page.getByRole("heading", { level: 1, name: "참조 기능" }), ).toBeVisible(); // The closed menu drawer holds a second copy of the status (08-01). await expect(page.getByRole("banner").getByText("인증됨")).toBeVisible(); // The mocked row went through the production codec, mapper and query cache. await expect(page.getByText("Browser reference")).toBeVisible(); });