-
Notifications
You must be signed in to change notification settings - Fork 26
/
nightwatch.conf.js
64 lines (62 loc) · 1.49 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
require('nightwatch-cucumber')({
nightwatchOutput: false,
cucumberArgs: [
'--compiler', 'js:babel-core/register',
'--require', 'e2e/util/hooks.js',
'--require', 'e2e/step_definitions',
'--format', 'node_modules/cucumber-pretty',
'e2e'
]
})
const config = {
output_folder: 'reports',
custom_assertions_path: '',
page_objects_path: 'e2e/page_objects',
live_output: false,
disable_colors: false,
selenium: {
start_process: false
},
test_settings: {
default: {
launch_url: 'http://localhost',
selenium_port: 4444,
selenium_host: 'localhost',
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true,
chromeOptions: {
args: [
'window-size=1280,800',
'disable-web-security'
]
},
selenium: {
cli_args: {
'webdriver.chrome.driver': 'node_modules/.bin/chromedriver'
}
}
},
ci: {
launch_url: 'http://localhost',
selenium_port: 4444,
selenium_host: 'localhost',
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true,
chromeOptions: {
args: [
'headless',
'disable-web-security',
'ignore-certificate-errors',
'disable-gpu'
]
}
}
}
}
}
}
module.exports = config