forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wdio.conf.js
55 lines (51 loc) · 1.69 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
51
52
53
54
55
const browsers = require('./browsers.json');
function getCapabilities() {
function getPlatform(os) {
const platformMap = {
'Windows': 'WINDOWS',
'OS X': 'MAC',
}
return platformMap[os];
}
// remove the IE11 browser from functional tests
delete browsers['bs_ie_11_windows_10'];
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,
'browserstack.networkLogs': true,
'browserstack.console': 'verbose',
build: 'Prebidjs E2E ' + new Date().toLocaleString()
});
});
return capabilities;
}
exports.config = {
specs: [
'./test/spec/e2e/**/*.spec.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: 60000, // Default timeout for all waitFor* commands.
connectionRetryTimeout: 60000, // 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: 60000,
compilers: ['js:babel-register'],
},
// if you see error, update this to spec reporter and logLevel above to get detailed report.
reporters: ['concise']
};