CI오류 수정
CI / test (push) Successful in 3m37s
CI / pr_and_merge (push) Successful in 1m8s

This commit is contained in:
2025-12-01 00:37:00 +09:00
parent 64e4a59244
commit 64d2e9d1af
19 changed files with 43 additions and 2 deletions
+12
View File
@@ -2,6 +2,18 @@ import { test, expect } from "@playwright/test";
// 프리뷰/뷰 모드 TDD: 먼저 실패하는 E2E부터 작성한다.
// 프리뷰 E2E에서도 기본적으로 로그인된 사용자를 가정한다.
// /editor 와 /preview 모두 auth 가드가 /api/auth/me 를 호출하므로, 200 으로 목 처리해 리다이렉트를 막는다.
test.beforeEach(async ({ page }) => {
await page.route("**/api/auth/me", async (route) => {
await route.fulfill({
status: 200,
contentType: "application/json",
body: JSON.stringify({ id: "user-e2e", email: "e2e@example.com", tokenVersion: 1 }),
});
});
});
test("/preview 페이지는 에디터 크롬 없이 컨텐츠만 보여야 한다", async ({ page }) => {
// 프리뷰 페이지로 이동한다.
await page.goto("/preview");