From db69e5203b5d2cfcfc49612ed22688f66a76a4f5 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 12 Nov 2026 15:03:16 +0900 Subject: [PATCH] =?UTF-8?q?test(e2e):=20Studio=20=EC=9E=91=EC=97=85=20?= =?UTF-8?q?=ED=9D=90=EB=A6=84=20=EC=8B=9C=ED=97=98=EC=9D=84=20fixture=20?= =?UTF-8?q?=EC=8B=9C=EA=B3=84=EB=A1=9C=20=EB=8F=8C=EB=A6=B0=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tech-log-studio-workflow.spec.ts만 page.goto로 들어가 실제 시계를 쓴다. mock 저장본의 검증 결과는 2026-08-14 09:40~10:10 KST에만 유효해서, 실제 시각에서는 「지난 결과 · 저장 후 다시 검증해야 합니다」가 나오고 「현재 저장 버전의 검증을 통과했습니다」를 찾지 못해 떨어진다. 로그인도 하지 않았다. 다른 Studio 시험처럼 gotoTechLogStudio(fixture 시계 2026-08-14T01:00Z, reduced motion, 데모 로그인)로 들어간다. 검증: 두 시험이 chromium·firefox·webkit 모두 통과한다. --- tests/e2e/tech-log-studio-workflow.spec.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/e2e/tech-log-studio-workflow.spec.ts b/tests/e2e/tech-log-studio-workflow.spec.ts index e81fa4b..0984e3f 100644 --- a/tests/e2e/tech-log-studio-workflow.spec.ts +++ b/tests/e2e/tech-log-studio-workflow.spec.ts @@ -1,10 +1,15 @@ import { FIXTURE_IDS } from "../../src/features/tech-log/adapters/mock/fixtures.ts"; import { expect, test } from "../support/browser/strict-browser-test.ts"; +import { gotoTechLogStudio } from "../support/browser/tech-log-fixtures.ts"; +// The mock validation of a saved version is valid for 30 minutes on +// 2026-08-14, so these run on the fixture clock (`gotoTechLogStudio`), like +// every other Studio browser test; on the real clock the result reads as stale. test("validates, previews, publishes, and unpublishes one Studio working copy", async ({ page, }) => { - await page.goto( + await gotoTechLogStudio( + page, `/studio/documents/${FIXTURE_IDS.stateNonceReference}/validation`, ); await expect( @@ -49,7 +54,8 @@ test("validates, previews, publishes, and unpublishes one Studio working copy", test("renders an immutable historical snapshot and Studio-local missing event", async ({ page, }) => { - await page.goto( + await gotoTechLogStudio( + page, `/studio/publications/${FIXTURE_IDS.fetchPublishedEvent}/preview`, ); await expect( @@ -59,7 +65,8 @@ test("renders an immutable historical snapshot and Studio-local missing event", page.getByText("게시 후 본문 측정값을 보완한 저장본입니다."), ).toHaveCount(0); - await page.goto( + await gotoTechLogStudio( + page, "/studio/publications/99999999-9999-4999-8999-999999999999/preview", ); await expect(