-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnightwatch.conf.js
35 lines (33 loc) · 919 Bytes
/
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
let selenium = require('selenium-server');
let chromedriver = require('chromedriver');
require('nightwatch-cucumber')({
cucumberArgs: [
'--require', 'features/step_definitions',
'--format', 'node_modules/cucumber-pretty',
'--format', 'json:reports/report.json',
'features'
],
nightwatchOutput: false
})
module.exports = {
selenium: {
start_process: true,
server_path: selenium.path
},
test_settings: {
default: {
screenshots: {
enabled: true,
on_failure: true,
path: 'screenshots/default'
},
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true,
"webdriver.chrome.driver": chromedriver.path,
"window-size": "1280,800"
}
}
}
}