-
Notifications
You must be signed in to change notification settings - Fork 2
/
playwright.config.js
54 lines (48 loc) · 1.27 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
53
54
const {devices} = require('@playwright/test');
/**@type {import { '@playwright/test' }.PlaywrightTestConfig} */
const config ={
timeout: 30000,
use:{
ignoreHTTPSErrors: true
},
projects: [
{
name: 'Desktop Chrominum',
use:{
browserName: 'chromium',
viewport:{width: 1280, height: 720}
},
},
// {
// name: 'Desktop Safari',
// use:{
// browserName: 'webkit',
// viewport: {width: 1280, height: 720}
// },
// },
{
name: 'Desktop Firefox',
use:{
browserName: 'firefox',
viewport: {width: 1280, height: 720}
},
},
// {
// name: 'Mobile Chrome',
// use:{
// browserName: 'chromium',
// ...devices['iPhone XR'],
// viewport: {width: 896, height: 414}
// },
// },
{
name: 'Tablet Chrome',
use:{
browserName: 'chromium',
...devices['iPad Air'],
viewport: {width: 1180, height: 820}
}
}
]
}
module.exports=config;