test(e2e): Studio 작업 흐름 시험을 fixture 시계로 돌린다

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 모두 통과한다.
This commit is contained in:
DongHyeonka
2026-11-12 15:03:16 +09:00
parent 500dbc6217
commit db69e5203b
+10 -3
View File
@@ -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(