forked from prebid/prebid-universal-creative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wdio.conf.js
50 lines (47 loc) · 1.53 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
45
46
47
48
49
50
const browsers = require('./browsers.json');
function getCapabilities() {
function getPlatform(os) {
const platformMap = {
'Windows': 'WINDOWS',
'OS X': 'MAC',
}
return platformMap[os];
}
let capabilities = []
Object.keys(browsers).forEach(key => {
let browser = browsers[key];
capabilities.push({
browserName: browser.browser,
platform: getPlatform(browser.os),
version: browser.browser_version,
acceptSslCerts: true,
build: 'UC ' + new Date().toLocaleString()
});
});
return capabilities;
}
exports.config = {
specs: [
'./test/e2e/specs/*.js'
],
services: ['browserstack'],
user: process.env.BROWSERSTACK_USERNAME,
key: process.env.BROWSERSTACK_ACCESS_KEY,
browserstackLocal: true,
// Do not increase this, since we have only 5 parallel tests in browserstack account
maxInstances: 5,
capabilities: getCapabilities(),
logLevel: 'silent', // Level of logging verbosity: silent | verbose | command | data | result | error
coloredLogs: true,
waitforTimeout: 90000, // Default timeout for all waitFor* commands.
connectionRetryTimeout: 90000, // Default timeout in milliseconds for request if Selenium Grid doesn't send response
connectionRetryCount: 3, // Default request retries count
framework: 'mocha',
mochaOpts: {
ui: 'bdd',
timeout: 90000,
compilers: ['@babel/register'],
},
// if you see error, update this to spec reporter and logLevel above to get detailed report.
reporters: ['concise']
};