-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config1.js
More file actions
51 lines (41 loc) · 888 Bytes
/
playwright.config1.js
File metadata and controls
51 lines (41 loc) · 888 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// @ts-check
const { devices } = require('@playwright/test');
const config = {
testDir: './tests',
retries :1,
workers: 3,
/* Maximum time one test can run for. */
//10-
timeout: 30 * 1000,
expect: {
timeout: 5000
},
reporter: 'html',
projects : [
{
name : 'safari',
use: {
browserName : 'webkit',
headless : true,
screenshot : 'off',
trace : 'on',//off,on
...devices['iPhone 11'],
}
},
{
name : 'chrome',
use: {
browserName : 'chromium',
headless : false,
screenshot : 'on',
video: 'retain-on-failure',
ignoreHttpsErrors:true,
permissions:['geolocation'],
trace : 'on',//off,on
// ...devices['']
// viewport : {width:720,height:720}
}
}
]
};
module.exports = config;