-
Notifications
You must be signed in to change notification settings - Fork 3
/
wdio.conf.js
40 lines (38 loc) · 931 Bytes
/
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
const path = require('path');
const { VisualRegression } = require('./build');
exports.config = {
runner: 'local',
specs: [
'e2e/main.e2e-spec.ts'
],
capabilities: [
{ browserName: 'chrome' },
{ browserName: 'firefox' }
],
logLevel: 'error',
baseUrl: 'http://example.com/',
waitforTimeout: 10000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
services: [
'selenium-standalone',
[VisualRegression, {
outputDir: path.resolve(process.cwd(), './e2e/regression'),
instanceFolder: ({ browserName, browserVersion }) => {
const [ version ] = browserVersion.split('.');
return `${ browserName }_${ version }`;
}
}]
],
framework: 'jasmine',
reporters: ['spec'],
jasmineNodeOpts: {
defaultTimeoutInterval: 60000,
},
before: () => {
require('ts-node').register({
project: 'e2e/tsconfig.json',
files: true
});
}
}