-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaywright.config.js
More file actions
43 lines (41 loc) · 1.04 KB
/
playwright.config.js
File metadata and controls
43 lines (41 loc) · 1.04 KB
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
const {defineConfig, devices} = require('@playwright/test');
module.exports = defineConfig({
testDir: './tests',
timeout: 10 * 1000,
expect: {
timeout: 1000,
},
fullyParallel: true,
forbidOnly: Boolean(process.env.CI),
retries: 0,
workers: process.env.CI ? 4 : undefined,
reporter: [
['html', {outputFolder: 'test-artifacts/report', open: 'never'}],
['json', {outputFile: 'test-artifacts/report.json'}],
['list'],
],
maxFailures: 30,
// disable useless artifacts
use: {
trace: {mode: 'off', screenshots: true, sources: false},
screenshot: 'off',
video: 'off',
},
projects: [
{
name: 'chromium',
use: {...devices['Desktop Chrome']},
},
],
webServer: {
command: 'npm run dev',
stderr: 'pipe',
stdout: 'pipe',
url: 'http://localhost:3000',
reuseExistingServer: true,
timeout: 30 * 1000,
env: {
DISABLE_WATCHER: true,
},
},
});