-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
67 lines (54 loc) · 1.54 KB
/
playwright.config.ts
File metadata and controls
67 lines (54 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import { defineConfig, devices } from '@playwright/test';
/**
* Playwright 설정 파일
* @see https://playwright.dev/docs/test-configuration
*/
export default defineConfig({
// testDir: './tests',
// /* 병렬 실행 설정 */
// fullyParallel: true,
// /* CI 환경에서 재시도 설정 */
// forbidOnly: !!process.env.CI,
// retries: process.env.CI ? 2 : 0,
// /* CI 환경에서 worker 수 설정 */
// workers: process.env.CI ? 1 : undefined,
// /* 리포터 설정 */
// reporter: 'html',
/* 모든 테스트에 적용되는 공통 설정 */
use: {
/* 실패한 테스트의 스크린샷 및 비디오 저장 */
// trace: 'on-first-retry',
/* 베이스 URL 설정 (필요시 수정) */
baseURL: 'http://localhost:3000',
},
/* 테스트할 브라우저 설정 */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
// {
// name: 'firefox',
// use: { ...devices['Desktop Firefox'] },
// },
// {
// name: 'webkit',
// use: { ...devices['Desktop Safari'] },
// },
/* 모바일 뷰포트 테스트 (필요시 활성화) */
// {
// name: 'Mobile Chrome',
// use: { ...devices['Pixel 5'] },
// },
// {
// name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] },
// },
],
/* 개발 서버 자동 시작 설정 (필요시 활성화) */
webServer: {
command: 'npm run dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
},
});