forked from insighty-studio/nightwatch-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnightwatch.conf.js
48 lines (46 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',
test_settings: {
default: {
launch_url: 'http://localhost',
selenium_port: 4444,
selenium_host: 'localhost',
silent: true,
globals: {
waitForConditionTimeout: 5000
},
screenshots: {
enabled: true,
path: SCREENSHOT_PATH,
on_failure: true,
on_error: false
}
},
chrome: {
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true,
'goog:chromeOptions': {
args: ['--window-size=1024,768'],
w3c: false
},
},
},
firefox: {
desiredCapabilities: {
browserName: 'firefox',
javascriptEnabled: true,
acceptSslCerts: true,
marionette: true
},
},
}
};