feat: assemble responsive app shell navigation

This commit is contained in:
donghyeon-ka
2026-07-25 23:52:34 +09:00
parent 0925d252d9
commit baeda39057
17 changed files with 1238 additions and 60 deletions
+9 -2
View File
@@ -1,7 +1,14 @@
import AxeBuilder from "@axe-core/playwright";
import { expect, test } from "@playwright/test";
for (const route of ["/", "/sample/resources", "/not-found"]) {
for (const route of [
"/",
"/examples/ui",
"/examples/states",
"/examples/auth",
"/sample/resources",
"/not-found",
]) {
test(`@a11y ${route} has no critical or serious axe violations`, async ({
page,
}) => {
@@ -21,7 +28,7 @@ test("@a11y keyboard reaches the primary route action with visible focus", async
page,
}) => {
await page.goto("/");
const action = page.getByRole("link", { name: "샘플 리소스" });
const action = page.getByRole("link", { name: "UI 구성요소 보기" });
await expect(action).toBeVisible();
await page.keyboard.press("Tab");
await expect(action).toBeFocused();