forked from zonemaster/zonemaster-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
30 lines (29 loc) · 774 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
30 lines (29 loc) · 774 Bytes
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
import { type PlaywrightTestConfig, devices } from '@playwright/test';
const config: PlaywrightTestConfig = {
workers: 4,
testDir: 'e2e',
testMatch: 'e2e/*.e2e-spec.ts',
webServer: {
command: 'NODE_ENV=testing npm run build && NODE_ENV=testing npm run preview',
url: 'http://localhost:4321/',
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI
},
expect: {
toMatchSnapshot: {
maxDiffPixelRatio: 0.01
}
},
use: {
headless: true,
baseURL: 'http://localhost:4321',
viewport: { width: 1920, height: 1080 }
},
projects: [
{
name: 'chromium',
...devices['Desktop Chrome']
},
],
};
export default config;