-
Notifications
You must be signed in to change notification settings - Fork 7
/
playwright-custom.config.ts
44 lines (40 loc) · 1.22 KB
/
playwright-custom.config.ts
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
import { PlaywrightTestConfig } from "@playwright/test";
const config: PlaywrightTestConfig ={
timeout: 60000, //60 seconds //Global time out for all the tests
retries: 1, //how many times you want to run failed tests
reporter: 'html',
//Define Browser specific options
use: {
headless:false,
viewport: {width: 1280, height: 720},
actionTimeout:15000, //15 seconds //This is for Playwright commands (click(), type(), fill())
ignoreHTTPSErrors: true, //This is to handle SSL certifications
//video: 'off', //To record videos of test execution
video: 'retain-on-failure',
//screenshot: 'off' //To take screenshots
screenshot: 'only-on-failure',
//trace: 'on',
trace: 'retain-on-failure',
}, //use
projects:[
{
name: 'Chromium',
use: {
browserName: 'chromium'
}
},//Chromium
{
name: 'Firefox',
use: {
browserName: 'firefox'
}
},//Firefox
{
name: 'Webkit',
use: {
browserName: 'webkit'
}
},//Firefox
]
}
export default config