-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathnightwatch.js
44 lines (42 loc) · 1.03 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
// nightwatch.js
const TRAVIS_JOB_NUMBER = process.env.TRAVIS_JOB_NUMBER;
const { SAUCE_ACCESS_KEY, SAUCE_USERNAME } = process.env;
module.exports = {
"test_settings" : {
default : {
launch_url: 'http://ondemand.saucelabs.com:80',
selenium_port: 80,
selenium_host: 'ondemand.saucelabs.com',
silent: true,
username: SAUCE_USERNAME,
access_key: SAUCE_ACCESS_KEY,
screenshots: {
enabled: true,
path: '',
},
globals: {
waitForConditionTimeout: 10000,
},
desiredCapabilities: {
build: `build-${TRAVIS_JOB_NUMBER}`,
'tunnel-identifier': TRAVIS_JOB_NUMBER,
// extendedDebugging: true
},
},
chrome: {
desiredCapabilities: {
browserName: 'chrome',
platform: 'OS X 10.11',
version: '47',
},
},
ie11: {
desiredCapabilities: {
browserName: 'internet explorer',
platform: 'Windows 10',
version: '11.0',
},
},
},
src_folders: ['tests/e2e'],
}