-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnightwatch.js
36 lines (34 loc) · 889 Bytes
/
nightwatch.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
module.exports = {
src_folders: ["tests/scenarios"],
output_folder: "tests/reports",
globals_path: "tests/setup.js",
custom_commands_path: [ "node_modules/apostrophe-nightwatch-tools/commands", "tests/commands" ],
selenium: {
start_process: false
},
test_settings: {
local: {
launch_url: 'http://localhost:8081',
selenium_port: 4444,
selenium_host: 'localhost',
silent: true,
globals: {
apos_address: 'localhost',
apos_port: 3111
},
screenshots: {
enabled: true,
path: './screenshots',
on_failure: true
},
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true,
"chromeOptions": {
"args": [ "start-maximized" ].concat(process.env.VISIBLE ? [] : [ "headless" ])
}
}
}
}
};