playwright 수정
CI / test (push) Failing after 2m30s
CI / pr_and_merge (push) Has been skipped

This commit is contained in:
2025-12-01 17:24:19 +09:00
parent ed093bf04f
commit 9e75989c5d
8 changed files with 20 additions and 2 deletions
+6 -2
View File
@@ -1,5 +1,7 @@
import { defineConfig, devices } from "@playwright/test";
const isCI = !!process.env.CI;
export default defineConfig({
testDir: "./tests/e2e",
timeout: 30_000,
@@ -17,9 +19,11 @@ export default defineConfig({
},
],
webServer: {
command: "npm run dev",
// CI 에서는 프로덕션 빌드 서버(next start)를 대상으로 E2E 를 수행해
// dev 모드의 느린 HMR/StrictMode 2회 렌더로 인한 flakiness 를 줄인다.
command: isCI ? "npm run start:e2e" : "npm run dev",
url: "http://localhost:3000",
reuseExistingServer: !process.env.CI,
reuseExistingServer: !isCI,
timeout: 120_000,
},
});