- Notifications
You must be signed in to change notification settings - Fork 929
Expand file tree
/
Copy pathplaywright.config.js
More file actions
Latest commit
27 lines (26 loc) · 760 Bytes
/
Copy pathplaywright.config.js
File metadata and controls
27 lines (26 loc) · 760 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
constpath=require('path');
const{ defineConfig }=require('@playwright/test');
module.exports=defineConfig({
testDir: './tests/webui',
fullyParallel: false,
workers: 1,
timeout: 30_000,
expect: {timeout: 5_000},
outputDir: path.join('output','playwright','results'),
reporter: process.env.CI
? [['line'],['html',{outputFolder: 'output/playwright/report',open: 'never'}]]
: 'line',
use: {
baseURL: 'http://127.0.0.1:18080',
browserName: 'chromium',
colorScheme: 'dark',
screenshot: 'only-on-failure',
trace: 'retain-on-failure'
},
webServer: {
command: 'sh tests/run-webui-server.sh',
url: 'http://127.0.0.1:18080/api/health',
reuseExistingServer: false,
timeout: 120_000
}
});