From baece798d22c954b0919bd77ddfe03a24a0b9091 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 12 Nov 2026 15:58:25 +0900 Subject: [PATCH] =?UTF-8?q?test(e2e):=20Studio=20=EC=9D=B4=ED=83=88=20?= =?UTF-8?q?=ED=99=95=EC=9D=B8=20=EC=8B=9C=ED=97=98=EC=9D=B4=20=EC=A7=80?= =?UTF-8?q?=EA=B8=88=20Studio=20=ED=83=90=EC=83=89=EC=9D=98=20=E3=80=8C?= =?UTF-8?q?=EA=B2=8C=EC=8B=9C=E3=80=8D=EB=A5=BC=20=EB=88=84=EB=A5=B8?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 이탈 확인(저장하지 않은 변경) 시험 셋은 작업본을 고친 뒤 「게시 기록」 링크를 누른다. Studio 머리말의 주 탐색은 지금 「작업·구조·자료·게시」로 묶여 있어 그 이름의 링크가 없다. 그래서 로그인과 관리 mock이 갖춰진 뒤에도 링크를 기다리다 30초 제한으로 떨어진다. 같은 곳(/studio/publications)으로 가는 「Studio 주 탐색」의 「게시」 링크를 누른다. visual의 같은 장면도 같이 바꾼다. 검증: tech-log-accessibility.spec.ts와 accessibility.spec.ts가 chromium·firefox·webkit에서 102건 모두 통과한다. --- tests/e2e/tech-log-accessibility.spec.ts | 9 +++++++-- tests/visual/tech-log.visual.spec.ts | 5 ++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/e2e/tech-log-accessibility.spec.ts b/tests/e2e/tech-log-accessibility.spec.ts index 67d7487..1ad0ab8 100644 --- a/tests/e2e/tech-log-accessibility.spec.ts +++ b/tests/e2e/tech-log-accessibility.spec.ts @@ -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"]) diff --git a/tests/visual/tech-log.visual.spec.ts b/tests/visual/tech-log.visual.spec.ts index 4d3a227..f0a258c 100644 --- a/tests/visual/tech-log.visual.spec.ts +++ b/tests/visual/tech-log.visual.spec.ts @@ -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();