test(e2e): Studio 이탈 확인 시험이 지금 Studio 탐색의 「게시」를 누른다
이탈 확인(저장하지 않은 변경) 시험 셋은 작업본을 고친 뒤 「게시 기록」 링크를 누른다. Studio 머리말의 주 탐색은 지금 「작업·구조·자료·게시」로 묶여 있어 그 이름의 링크가 없다. 그래서 로그인과 관리 mock이 갖춰진 뒤에도 링크를 기다리다 30초 제한으로 떨어진다. 같은 곳(/studio/publications)으로 가는 「Studio 주 탐색」의 「게시」 링크를 누른다. visual의 같은 장면도 같이 바꾼다. 검증: tech-log-accessibility.spec.ts와 accessibility.spec.ts가 chromium·firefox·webkit에서 102건 모두 통과한다.
This commit is contained in:
@@ -45,7 +45,9 @@ test("dirty-leave dialog is labelled, traps focus, and restores the invoking lin
|
||||
"/studio/documents/11111111-1111-4111-8111-111111111111/edit",
|
||||
);
|
||||
await page.getByLabel("요약").fill("저장하지 않은 접근성 검증 변경");
|
||||
const trigger = page.getByRole("link", { name: "게시 기록", exact: true }).first();
|
||||
const trigger = page
|
||||
.getByRole("navigation", { name: "Studio 주 탐색" })
|
||||
.getByRole("link", { name: "게시", exact: true });
|
||||
await trigger.click();
|
||||
const dialog = page.getByRole("dialog", { name: "저장하지 않은 변경" });
|
||||
await expect(dialog).toBeVisible();
|
||||
@@ -71,7 +73,10 @@ test("open Public search and Studio leave dialogs have no blocking Axe findings"
|
||||
"/studio/documents/11111111-1111-4111-8111-111111111111/edit",
|
||||
);
|
||||
await page.getByLabel("요약").fill("dialog axe state");
|
||||
await page.getByRole("link", { name: "게시 기록", exact: true }).first().click();
|
||||
await page
|
||||
.getByRole("navigation", { name: "Studio 주 탐색" })
|
||||
.getByRole("link", { name: "게시", exact: true })
|
||||
.click();
|
||||
results = await new AxeBuilder({ page })
|
||||
.include("dialog")
|
||||
.withTags(["wcag2a", "wcag2aa", "wcag21a", "wcag21aa"])
|
||||
|
||||
@@ -112,7 +112,10 @@ test("Studio dirty-leave dialog matches the source without a mask", async ({ pag
|
||||
"/studio/documents/11111111-1111-4111-8111-111111111111/edit",
|
||||
);
|
||||
await page.getByLabel("요약").fill("저장하지 않은 시각 검증 변경");
|
||||
await page.getByRole("link", { name: "게시 기록", exact: true }).first().click();
|
||||
await page
|
||||
.getByRole("navigation", { name: "Studio 주 탐색" })
|
||||
.getByRole("link", { name: "게시", exact: true })
|
||||
.click();
|
||||
await expect(
|
||||
page.getByRole("dialog", { name: "저장하지 않은 변경" }),
|
||||
).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user