feat: assemble responsive app shell navigation
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user