-
Notifications
You must be signed in to change notification settings - Fork 4
/
wdio.conf.js
44 lines (41 loc) · 1.15 KB
/
wdio.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
const os = require('os');
const browsers = require('./browsers');
let capabilities = os.type() === 'Darwin'?
[{"browserName": "safari"}] : [{"browserName": "chrome"}, {"browserName": "firefox"}];
let services = ['selenium-standalone'];
let user;
let key;
if (process.env.BROWSERSTACK === 'true') {
services = ['browserstack'];
user = process.env.BROWSERSTACK_USERNAME;
key = process.env.BROWSERSTACK_ACCESSKEY;
capabilities = browsers
.map(browser => Object.assign({}, {browserName: browser.browser.toLowerCase()}, browser));
}
exports.config = {
specs: [
'./test/specs/**/*.ts'
],
capabilities,
sync: true,
logLevel: 'silent',
coloredLogs: true,
deprecationWarnings: true,
bail: 0,
screenshotPath: './errorShots/',
baseUrl: process.env.E2E_BASE_URL || 'http://localhost:8090',
waitforTimeout: 20000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
services,
user,
key,
browserstackLocal: true,
framework: 'jasmine',
jasmineNodeOpts: {
defaultTimeoutInterval: 60000
},
before: function () {
require('ts-node/register');
}
};