From 08de54c4958a4c9040eb2c5af74cde19ee55e54e Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Fri, 13 Nov 2026 00:35:46 +0900 Subject: [PATCH] =?UTF-8?q?test(e2e):=20focus=20ring=20=EC=8B=9C=ED=97=98?= =?UTF-8?q?=EC=9D=B4=20=EC=B2=AB=20=ED=99=94=EB=A9=B4=EC=9D=B4=20=EA=B7=B8?= =?UTF-8?q?=EB=A0=A4=EC=A7=84=20=EB=92=A4=EC=97=90=20=EB=A7=81=ED=81=AC?= =?UTF-8?q?=EC=97=90=20=ED=8F=AC=EC=BB=A4=EC=8A=A4=EB=A5=BC=20=EC=A4=80?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit app-shell의 focus ring 시험이 FE-GATE-008 전체 실행에서 WebKit만 한 번 실패했다. 「플랫폼 구성」 heading이 5초 안에 나오지 않았다(단독 실행에서는 세 엔진 모두 통과). 시험은 page.goto 직후 링크에 focus()를 주고 Enter를 누른다. 홈 라우트는 셸보다 늦게 그려지므로, 그 전에 준 포커스는 바뀐 노드와 함께 사라지고 Enter는 아무것도 하지 않는다. 고른 방법: 홈 heading이 그려진 것을 기다린 뒤 포커스를 주고, 링크가 포커스를 가졌는지 확인한 뒤 Enter를 누른다. 버린 대안: 재시도나 timeout 늘리기(원인을 덮는다). 검증: 고치기 전 시험을 WebKit에서 30번, 고친 시험을 세 엔진에서 30번씩 돌린 결과를 PR 본문에 적는다. Refs: 1112/05-02 --- tests/e2e/app-shell.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/app-shell.spec.ts b/tests/e2e/app-shell.spec.ts index 5f94dd73..c49dcb5c 100644 --- a/tests/e2e/app-shell.spec.ts +++ b/tests/e2e/app-shell.spec.ts @@ -30,10 +30,14 @@ test("shows the focus ring on the route heading after keyboard navigation only", page, }) => { await page.goto("/"); + // The home route renders after the shell: focus given before it is there + // goes with the node it lands on, and Enter then does nothing (WebKit). + await expect(page.getByRole("heading", { level: 1 })).toHaveText("Clean Architecture Frontend"); const link = page .getByRole("navigation", { name: "주요 탐색" }) .getByRole("link", { name: "플랫폼 구성" }); await link.focus(); + await expect(link).toBeFocused(); await page.keyboard.press("Enter"); const heading = page.getByRole("heading", { level: 1, name: "플랫폼 구성" }); await expect(heading).toBeFocused();