Added webdriverio integration tests
This commit is contained in:
parent
bd02b7db8e
commit
23d629b80b
40 changed files with 10815 additions and 4163 deletions
45
test/wdio.common.conf.js
Normal file
45
test/wdio.common.conf.js
Normal file
|
@ -0,0 +1,45 @@
|
|||
const path = require('path');
|
||||
const tmp = require('tmp');
|
||||
const tmpDir = tmp.dirSync({ mode: '0777', prefix: 'integrationTestsTmpDir-' });
|
||||
|
||||
exports.config = {
|
||||
specs: [path.join(__dirname, './integration/**/*-tests.js')],
|
||||
exclude: [],
|
||||
maxInstances: 10,
|
||||
capabilities: [
|
||||
{
|
||||
browserName: 'firefox',
|
||||
'moz:firefoxOptions': {
|
||||
log: { level: 'trace' },
|
||||
prefs: {
|
||||
'browser.download.panel.shown': false,
|
||||
'browser.helperApps.neverAsk.openFile': 'text/plain',
|
||||
'browser.helperApps.neverAsk.saveToDisk': 'text/plain',
|
||||
'browser.download.folderList': 2,
|
||||
'browser.download.dir': `${tmpDir.name}`
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
pageLoadStrategy: 'normal',
|
||||
watch: false,
|
||||
async: true,
|
||||
logLevel: 'error',
|
||||
coloredLogs: true,
|
||||
deprecationWarnings: true,
|
||||
bail: 0,
|
||||
screenshotOnReject: false,
|
||||
baseUrl: 'http://localhost:8080',
|
||||
waitforTimeout: 20000,
|
||||
connectionRetryTimeout: 90000,
|
||||
connectionRetryCount: 3,
|
||||
services: ['firefox-profile'],
|
||||
framework: 'mocha',
|
||||
reporters: ['dot', 'spec'],
|
||||
mochaOpts: {
|
||||
ui: 'bdd',
|
||||
timeout: 30000,
|
||||
compilers: ['js:babel-register'],
|
||||
retries: 1
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue