-
Notifications
You must be signed in to change notification settings - Fork 16
/
nightwatch.conf.js
42 lines (41 loc) · 941 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
36
37
38
39
40
41
42
const TRAVIS_JOB_NUMBER = process.env.TRAVIS_JOB_NUMBER;
if (!process.env.TRAVIS) {
require('dotenv').config();
}
module.exports = {
src_folders: [
'test/e2e'
],
output_folder: 'reports',
test_settings: {
default: {
launch_url: 'http://localhost:8000',
selenium_port: 80,
selenium_host: 'ondemand.saucelabs.com',
silent: true,
username: process.env.SAUCE_USERNAME,
access_key: process.env.SAUCE_ACCESS_KEY,
desiredCapabilities: {
browserName: 'chrome',
'build': `build-${TRAVIS_JOB_NUMBER}`,
'tunnel-identifier': TRAVIS_JOB_NUMBER,
}
},
firefox: {
desiredCapabilities: {
browserName: 'firefox'
}
},
edge: {
desiredCapabilities: {
browserName: 'MicrosoftEdge'
}
},
ie9: {
desiredCapabilities: {
browserName: 'internet explorer',
'version': '9'
}
}
}
};