-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnightwatch.conf.js
69 lines (65 loc) · 1.92 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
65
66
67
68
69
const exec = require('child_process').exec;
var phantomCapabilities = {
"browserName": "phantomjs",
"javascriptEnabled": true,
"acceptSslCerts": true,
"phantomjs.cli.args": ["--ignore-ssl-errors=true"],
"phantomjs.page.settings.userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36"
};
var chromeCapabilities = {
"browserName": "chrome",
"javascriptEnabled": true,
"acceptSslCerts": true,
"chromeOptions": {
// no-sandbox necessary to run inside Docker container
"args": ["no-sandbox"]
}
};
var testUrl = 'http://' + (process.env['LBSERVER_HOST'] || 'localhost') + ':8000';
var distUrl = 'http://lunchbadger.ntrc.eu';
module.exports = {
"src_folders": [
"test/specs"
],
"output_folder": "test/reports",
"custom_commands_path": "test/commands",
"custom_assertions_path": "test/assertions",
"page_objects_path": "test/pageObjects",
"globals_path": "test/globals",
"selenium": {
"start_process": true,
"server_path": "./node_modules/selenium-server-standalone-jar/jar/selenium-server-standalone-2.53.1.jar",
"log_path": "",
"host": "127.0.0.1",
"port": 4444,
"cli_args": {
"webdriver.chrome.driver": "./node_modules/chromedriver/bin/chromedriver"
}
},
"test_settings": {
"default": {
"launch_url": testUrl,
"selenium_port": 4444,
"selenium_host": "localhost",
"silent": true,
"screenshots": {
"enabled": true,
"on_failure": true,
"on_error": true,
"path": "test/reports/screenshots"
},
"desiredCapabilities": chromeCapabilities
},
"phantom": {
"desiredCapabilities": phantomCapabilities
},
"dist": {
"launch_url": distUrl,
"desiredCapabilities": chromeCapabilities
},
"dist_phantom": {
"launch_url": distUrl,
"desiredCapabilities": phantomCapabilities
}
}
};