-
Notifications
You must be signed in to change notification settings - Fork 367
/
Copy pathplaywright.config.ts
53 lines (51 loc) · 1008 Bytes
/
playwright.config.ts
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
import { PlaywrightTestConfig } from '@playwright/test'
const config: PlaywrightTestConfig = {
fullyParallel: true,
retries: 2,
use: {
headless: true,
screenshot: 'only-on-failure',
viewport: { width: 1440, height: 900 },
bypassCSP: true,
launchOptions: {
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-web-security',
'--disable-gpu',
'--disable-dev-shm-usage'
]
}
},
projects: [
{
name: 'e2e',
testDir: 'test/e2e',
outputDir: 'screenshots',
timeout: 30000,
use: {
baseURL: 'http://localhost:3000'
}
}
],
webServer: {
command: 'yarn build:e2e:start',
url: 'http://localhost:3000',
env: {
E2E_COVERAGE: 'true',
NODE_ENV: 'production'
},
timeout: 120 * 100000
},
reporter: [
['list'],
[
'html',
{
open: 'never',
outputFolder: 'reports'
}
]
]
}
export default config