-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnightwatch.conf.js
68 lines (66 loc) · 1.96 KB
/
nightwatch.conf.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
src_folders: ['tests'],
page_objects_path: ['lib/pages'],
//custom_commands_path: ['nightwatch/custom-commands'],
//custom_assertions_path: ['nightwatch/custom-assertions'],
plugins: [],
globals_path: '',
webdriver: {},
//test_workers: { enabled: true },
test_settings: {
default: {
disable_error_log: true,
screenshots: {
enabled: false,
on_failure: true
},
desiredCapabilities: {
browserName: 'chrome'
},
webdriver: {
start_process: true,
server_path: ''
},
globals:{
retryAssertionTimeout: 10000
}
},
vue: {
launch_url: 'http://localhost:5173',
},
react: {
launch_url: 'http://localhost:3000',
},
angular: {
launch_url: 'http://localhost:4200',
},
chrome: {
desiredCapabilities: {
browserName: 'chrome',
'goog:chromeOptions': {
// w3c:false tells Chromedriver to run using the legacy JSONWire protocol (not required in Chrome 78)
w3c: true,
args: [
"disable-gpu",
"headless",
"window-size=1920,1080",
"no-sandbox",
"ignore-certificate-errors",
"allow-insecure-localhost"
//'--headless'
]
}
},
webdriver: {
start_process: true,
server_path: '',
cli_args: [
"disable-gpu",
"headless",
"window-size=1920,1080"
// --verbose
]
}
},
},
};