-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnightwatch.conf.js
47 lines (43 loc) · 1.31 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
/*eslint-disable*/
var path = require("path");
const outputDirectory = process.env.NIGHTWATCH_OUTPUT || "./e2eTestLog";
module.exports = {
"src_folders" : ["test/e2e"],
"output_folder" : outputDirectory,
"custom_commands_path" : "",
"custom_assertions_path" : "",
"page_objects_path" : "",
"globals_path" : "",
"selenium" : {
"start_process" : !(/^win/.test(process.platform)),
"server_path" : require("selenium-server").path,
"log_path" : path.join(outputDirectory, "logs"),
"host" : "127.0.0.1",
"port" : 4444,
"cli_args" : {
"webdriver.chrome.driver" : console.log(require('chromedriver').path) && require('chromedriver').path,
"webdriver.chrome.logfile" : '/tmp/chromedriver.log',
"webdriver.chrome.verboseLogging" : true,
"webdriver.ie.driver" : ""
}
},
"test_settings" : {
"default" : {
"launch_url" : "http://localhost:3001",
"selenium_port" : 4444,
"selenium_host" : "127.0.0.1",
"silent": true,
"disable_colors": true,
"screenshots" : {
"enabled" : true,
"on_failure" : true,
"path" : path.join(outputDirectory, "snapshots")
},
"desiredCapabilities" : {
"browserName" : "chrome",
"javascriptEnabled" : true,
"acceptSslCerts" : true
}
}
}
};