-
Notifications
You must be signed in to change notification settings - Fork 3
/
playwright.config.ts
53 lines (50 loc) · 1017 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, devices, ViewportSize } from '@playwright/test';
const viewportOverride: ViewportSize = {
width: 1400,
height: 900,
};
const config: PlaywrightTestConfig = {
testDir: 'test-e2e',
retries: 1,
use: {
headless: true,
ignoreHTTPSErrors: true,
trace: 'retain-on-failure',
// video: 'on-first-retry',
launchOptions: {
// slowMo: 250,
},
contextOptions: {
strictSelectors: true,
},
},
webServer: {
command: 'npm run test-e2e-server',
port: 3000,
reuseExistingServer: true,
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
viewport: viewportOverride,
},
},
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
viewport: viewportOverride,
},
},
{
name: 'webkit',
use: {
...devices['Desktop Safari'],
viewport: viewportOverride,
},
},
],
};
export default config;