// frontend/playwright/auth.config.ts — AUTH_ENABLED=true 전용 E2E(인증·격리) // 사전: 백엔드 :31800 을 AUTH_ENABLED=1 + 시드 자격으로 기동. // 실행: pnpm exec playwright test -c playwright/auth.config.ts import { defineConfig, devices } from "@playwright/test"; export default defineConfig({ testDir: ".", testMatch: ["auth.spec.ts", "multiuser.spec.ts"], fullyParallel: false, timeout: 60_000, retries: 1, reporter: [["list"]], use: { baseURL: "http://localhost:31301", trace: "on-first-retry", navigationTimeout: 45_000, actionTimeout: 15_000, }, projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }], webServer: { command: "NEXT_PUBLIC_AUTH_ENABLED=true pnpm dev -p 31301", url: "http://localhost:31301", reuseExistingServer: !process.env.CI, timeout: 120_000, env: { NEXT_PUBLIC_AUTH_ENABLED: "true" }, }, });