-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnightwatch.conf.js
48 lines (47 loc) · 1.15 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
const SCREENSHOT_PATH = process.env.CIRCLE_ARTIFACTS || './screenshots';
module.exports = {
src_folders: [
'tests/fixtures'
],
output_folder: 'reports',
custom_commands_path: 'tests/commands',
page_objects_path: '',
globals_path: 'tests/globals.js',
selenium: {
start_process: true,
server_path: './node_modules/selenium-server-standalone-jar/jar/selenium-server-standalone-3.9.1.jar',
log_path: './logs',
port: 9515,
cli_args: {
'webdriver.chrome.driver': './node_modules/chromedriver/lib/chromedriver/chromedriver'
}
},
test_settings: {
default: {
launch_url: 'http://localhost',
selenium_port: 9515,
selenium_host: 'localhost',
silent: true,
globals: {
waitForConditionTimeout: 5000
},
screenshots: {
enabled: true,
path: SCREENSHOT_PATH,
on_failure: true,
on_error: false
},
desiredCapabilities: {
browserName: 'chrome',
marionette: true,
chromeOptions: {
args: [
'--no-sandbox',
'incognito',
'disable-extensions'
]
}
}
}
}
};