-
-
Notifications
You must be signed in to change notification settings - Fork 270
Expand file tree
/
Copy pathplaywright.config.js
More file actions
43 lines (42 loc) · 1.23 KB
/
Copy pathplaywright.config.js
File metadata and controls
43 lines (42 loc) · 1.23 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
import process from 'node:process';
import {defineConfig} from '@playwright/test';
export default defineConfig({
testDir: './test-e2e',
timeout: 30_000,
workers: 1,
fullyParallel: true,
forbidOnly: Boolean(process.env.CI),
reporter: 'list',
expect: {
timeout: 10_000,
},
projects: [{
name: 'default',
testMatch: 'client/keys/**/*.js',
use: {
baseURL: 'http://localhost:3002',
headless: true,
video: 'retain-on-failure',
},
}, {
name: 'menu',
testMatch: 'client/menu/**/*.js',
testIgnore: 'client/menu/helper.js',
use: {
baseURL: 'http://localhost:3003',
headless: true,
video: 'retain-on-failure',
},
}],
webServer: [{
command: 'node bin/cloudcmd.js --no-auth --port 3002 --root test-e2e/client/fixture --no-open',
url: 'http://localhost:3002',
reuseExistingServer: false,
timeout: 15_000,
}, {
command: 'node bin/cloudcmd.js --no-auth --port 3003 --root test-e2e/client/fixture --no-open --menu aleman',
url: 'http://localhost:3003',
reuseExistingServer: false,
timeout: 15_000,
}],
});