-
Notifications
You must be signed in to change notification settings - Fork 5
/
playwright.config.ts
52 lines (48 loc) · 1010 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
import type { PlaywrightTestConfig } from '@playwright/test'
import { devices } from '@playwright/test'
const config: PlaywrightTestConfig = {
expect: {
timeout: 5000,
},
forbidOnly: Boolean(process.env.CI),
fullyParallel: true,
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
ignoreHTTPSErrors: true,
},
},
// {
// name: 'firefox',
// use: {
// ...devices['Desktop Firefox'],
// ignoreHTTPSErrors: true,
// },
// },
{
name: 'webkit',
use: {
...devices['Desktop Safari'],
ignoreHTTPSErrors: true,
},
},
],
reporter: process.env.CI ? 'html' : 'line',
retries: process.env.CI ? 2 : 0,
testDir: './tests',
timeout: 30 * 1000,
use: {
actionTimeout: 0,
trace: 'on-first-retry',
},
webServer: [
{
command: 'yarn serve',
port: 3000,
},
],
workers: process.env.CI ? 1 : undefined,
}
export default config