forked from piktur/vue-cli-plugin-e2e-webdriverio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwdio.conf.base.js
35 lines (31 loc) · 828 Bytes
/
wdio.conf.base.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
const path = require('path')
const { isInteractive, resizeViewport } = require('./lib/util')
// @see http://webdriver.io/guide/testrunner/configurationfile.html
module.exports.config = {
specs: specs(),
exclude: [],
path: '/wd/hub', // must be absolute
maxInstances: 1,
sync: true,
logLevel: 'silent',
coloredLogs: true,
deprecationWarnings: false,
waitforTimeout: 20000,
waitforInterval: 100,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
bail: 1, // abort if any suite fails
}
function specs() {
if (('VUE_CONTEXT', 'VUE_CLI_WDIO_SPECS') in process.env) {
return [path.resolve(process.env.VUE_CONTEXT, process.env.VUE_CLI_WDIO_SPECS)]
} else {
return []
}
}
function beforeSuite(suite) {
if (isInteractive()) resizeViewport()
}
module.exports.hooks = [
beforeSuite,
]