-
Notifications
You must be signed in to change notification settings - Fork 0
/
playwright.config.ts
57 lines (53 loc) · 1.15 KB
/
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
54
55
56
57
import type { PlaywrightTestConfig } from '@playwright/test'
import { devices } from '@playwright/test'
const config: PlaywrightTestConfig = {
expect: {
timeout: 5 * 1000,
},
forbidOnly: Boolean(process.env.CI),
fullyParallel: true,
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
permissions: ['clipboard-read'],
},
},
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
ignoreHTTPSErrors: true,
launchOptions: {
firefoxUserPrefs: {
'security.certerrors.mitm.auto_enable_enterprise_roots': true,
'security.enterprise_roots.enable': true,
},
},
},
},
{
name: 'webkit',
use: {
...devices['Desktop Safari'],
},
},
],
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 start',
port: 5173,
},
],
workers: process.env.CI ? 1 : undefined,
}
export default config