-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.js
53 lines (46 loc) · 1.06 KB
/
playwright.config.js
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
const {playwrightTestConfig} = require('@playwright/test');
const { truncateSync } = require('fs');
const { devices } = require('playwright-extra');
const config = {
fullyParallel:false,
retries: 0,
timeout: 120000,
workers: 1,
//reporter: './Reporter.js',
use: {
headless: false,
video:'on',
viewpoint:{ width: 1400, height: 740 },
launchOptions: {
args: ['--start-fullscreen'], // Start the browser in maximized mode
},
screenshot: 'true',
trace:'on'
},
projects: [
{
name: 'chrome',
use: {browserName:'chromium'},
},
{
name: 'firefox',
use: { browserName: 'firefox' },
},
{
name: 'webkit',
use: {browserName: 'webkit'},
},
]
/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// url: 'http://127.0.0.1:3000',
// reuseExistingServer: !process.env.CI,
// },
}
module.exports = config;
module.exports = {
reporter: [
['html', { outputFolder: 'playwright-report', open: 'never' }]
]
};