forked from jsbin/jsbin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.js
45 lines (40 loc) · 1.18 KB
/
nightwatch.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
var glob = require('glob');
var path = require('path');
var seleniumJar = glob.sync(path.join(
'node_modules', 'selenium-standalone', '.selenium', 'selenium-server', '*.jar'))[0];
if (!seleniumJar) {
throw new Error('Can\'t find selenium jar, try running "npm run selenium:install"');
}
const TRAVIS_JOB_NUMBER = process.env.TRAVIS_JOB_NUMBER;
module.exports = {
"src_folders": ["test/e2e/specs"],
"test_settings": {
"local": {
"launch_url": "http://localhost:3000/",
"selenium": {
"start_process": true,
"server_path": seleniumJar
}
},
"remote": {
desiredCapabilities: {
browserName: "chrome",
platform: "OS X 10.11",
version: "latest",
build: 'build-' + TRAVIS_JOB_NUMBER,
'tunnel-identifier': TRAVIS_JOB_NUMBER,
"username": process.env.SAUCE_USERNAME,
"access_key": process.env.SAUCE_ACCESS_KEY
},
"launch_url": "http://localhost:3000/",
"selenium_port": 80,
"selenium_host": "ondemand.saucelabs.com",
"silent": true,
"screenshots": {
"enabled": false,
"path": ""
}
}
},
"custom_assertions_path": "test/e2e/assertions"
};