From 4a3930094190cc95a58462dd47dd870b48e55d97 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 12 Nov 2026 17:40:23 +0900 Subject: [PATCH] =?UTF-8?q?test(e2e):=20Studio=20=ED=99=94=EB=A9=B4=20?= =?UTF-8?q?=EC=8B=9C=ED=97=98=EC=9D=B4=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20?= =?UTF-8?q?=EB=92=A4=20=EB=8D=B0=EC=9D=B4=ED=84=B0=EA=B0=80=20=EA=B7=B8?= =?UTF-8?q?=EB=A0=A4=EC=A7=84=20=EB=8B=A4=EC=9D=8C=20=EC=8B=9C=EC=9E=91?= =?UTF-8?q?=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit signInToStudio는 로그인 뒤 Studio 머리말과 networkidle까지 기다린다. 그런데 mock Studio는 네트워크를 쓰지 않아 networkidle이 바로 오고, 화면은 그 뒤 약 0.3초 동안 aria-busy(데이터 로딩)였다가 본문을 그린다. 그래서 visual 「TECH_LOG_STUDIO_DOCUMENT_EDIT 360px」가 두 번 연속 로딩 상태(1000px)를 찍어, 다시 만든 기준(2077px)과 달라 떨어졌다. main 안에 aria-busy가 없어질 때까지 기다린다. 검증: 로그인 뒤 100 ms마다 잰 값(chromium, 360px)에서 /studio, /studio/documents, 편집 화면 모두 처음 세 번은 busy 1, 높이 1000이었고 네 번째부터 busy 0과 본문 높이가 됐다. 고친 뒤 test:visual 두 번 연속 132건 통과(PR 표). --- tests/support/browser/tech-log-fixtures.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/support/browser/tech-log-fixtures.ts b/tests/support/browser/tech-log-fixtures.ts index 407de7f..ab35fec 100644 --- a/tests/support/browser/tech-log-fixtures.ts +++ b/tests/support/browser/tech-log-fixtures.ts @@ -151,6 +151,11 @@ export async function signInToStudio(page: Page) { await page.locator("header.studio-header").waitFor(); await gate.waitFor({ state: "detached" }); await page.waitForLoadState("networkidle"); + // The screen then loads its data (about 0.3 s, `aria-busy` while it does): + // a screenshot or a measurement taken before that sees the loading state. + await page.waitForFunction( + () => document.querySelector('main [aria-busy="true"]') === null, + ); } /** `gotoTechLog` for a Studio route, signed in. */