o2o-infinith-frontend/playwright.config.ts

26 lines
685 B
TypeScript

import { defineConfig, devices } from '@playwright/test'
/**
* Playwright config — /test 페이지를 통한 분석 플로우 E2E 검증용.
*
* dev 서버는 직접 띄워놓은 상태에서 BASE_URL 환경변수로 포트 지정 (기본 3000).
* `BASE_URL=http://localhost:3002 npx playwright test` 처럼 사용.
*/
export default defineConfig({
testDir: './e2e',
fullyParallel: true,
workers: 3,
reporter: [['list']],
use: {
baseURL: process.env.BASE_URL ?? 'http://localhost:3000',
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
})