Takes over the identity the template left generic. The application name becomes Memento in the browser title, the shell header and the home page, in both the Korean and English catalogs. The browser storage namespace moves from `ca-frontend` to `memento`, which also moves the OPFS root directory, its mutation lock and the journal metadata prefix. Nothing is migrated, because this repository has never been deployed and so no origin holds data under the old prefix. The tests that assert those key strings move with them. Release provenance needs no edit here: the builder and verifier ids are derived from the `name` in package.json upstream, so changing that one line renames them too. The template name is left alone in docs/, where it is part of the record of work that actually happened in that repository, and in the secret scan tool id, which is an internal identifier matched by a validator on both sides rather than a product name. README.md now describes this repository and, more importantly, records how to merge from upstream and exactly which files carry a memento value and will therefore be where conflicts land. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
import { expect, test } from "../support/browser/strict-browser-test.ts";
|
|
|
|
test("boots the public app shell", async ({ page }) => {
|
|
await page.goto("/");
|
|
await expect(page.getByRole("heading", { level: 1 })).toHaveText(
|
|
"Memento",
|
|
);
|
|
await expect(page.getByRole("navigation", { name: "주요 탐색" })).toBeVisible();
|
|
await expect(page.getByRole("main")).toBeVisible();
|
|
});
|
|
|
|
test("navigates to a registry-backed example without a page reload", async ({
|
|
page,
|
|
}) => {
|
|
await page.goto("/");
|
|
await page
|
|
.getByRole("navigation", { name: "주요 탐색" })
|
|
.getByRole("link", { name: "화면 상태" })
|
|
.click();
|
|
|
|
await expect(page).toHaveURL(/\/examples\/states$/);
|
|
await expect(
|
|
page.getByRole("heading", { level: 1, name: "화면 상태" }),
|
|
).toBeFocused();
|
|
});
|
|
|
|
test("provides an escape-dismissible mobile navigation", async ({ page }) => {
|
|
await page.setViewportSize({ width: 390, height: 844 });
|
|
await page.goto("/");
|
|
const menu = page.getByRole("button", { name: "메뉴", exact: true });
|
|
|
|
await menu.click();
|
|
await expect(menu).toHaveAttribute("aria-expanded", "true");
|
|
await expect(page.getByRole("navigation", { name: "주요 탐색" })).toBeVisible();
|
|
await expect(page.locator(".ui-drawer")).toHaveJSProperty("open", true);
|
|
expect(
|
|
await page.locator(".ui-drawer").evaluate((drawer) => drawer.matches(":modal")),
|
|
).toBe(true);
|
|
|
|
await page.keyboard.press("Escape");
|
|
await expect(menu).toHaveAttribute("aria-expanded", "false");
|
|
await expect(page.getByRole("navigation", { name: "주요 탐색" })).toBeHidden();
|
|
await expect(menu).toBeFocused();
|
|
});
|