forked from molgenis/molgenis-app-biobank-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.config.js
89 lines (86 loc) · 2.2 KB
/
nightwatch.config.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
var packageJson = require('./package.json')
const buildName = packageJson.name + '#PR-' + process.env.CHANGE_ID + '-build-' + process.env.BUILD_NUMBER
module.exports = {
test_settings: {
ci_chrome: {
silent: true,
username: process.env.SAUCE_CRED_USR,
access_key: process.env.SAUCE_CRED_PSW,
selenium: {
start_process: false,
host: 'ondemand.us-west-1.saucelabs.com',
port: '80',
timeout_options: {
timeout: 120000,
retry_attempts: 1
}
},
desiredCapabilities: {
name: packageJson.name,
build: buildName,
tunnelIdentifier: process.env.TUNNEL_IDENTIFIER,
browserName: 'chrome'
}
},
ci_firefox: {
silent: true,
username: process.env.SAUCE_CRED_USR,
access_key: process.env.SAUCE_CRED_PSW,
selenium: {
start_process: false,
host: 'ondemand.us-west-1.saucelabs.com',
port: '80',
timeout_options: {
timeout: 120000,
retry_attempts: 1
}
},
desiredCapabilities: {
name: packageJson.name,
build: buildName,
tunnelIdentifier: process.env.TUNNEL_IDENTIFIER,
browserName: 'firefox'
}
},
ci_safari: {
silent: true,
username: process.env.SAUCE_CRED_USR,
access_key: process.env.SAUCE_CRED_PSW,
selenium: {
start_process: false,
host: 'ondemand.us-west-1.saucelabs.com',
port: '80',
timeout_options: {
timeout: 120000,
retry_attempts: 1
}
},
desiredCapabilities: {
name: packageJson.name,
build: buildName,
tunnelIdentifier: process.env.TUNNEL_IDENTIFIER,
browserName: 'safari'
}
},
firefox: {
desiredCapabilities: {
browserName: 'firefox',
javascriptEnabled: true,
acceptSslCerts: true,
marionette: true
},
selenium: {
cli_args: {
'webdriver.firefox.driver': require('geckodriver').path
}
}
},
safari: {
desiredCapabilities: {
browserName: 'safari',
javascriptEnabled: true,
acceptSslCerts: true
}
}
}
}