forked from trailheadapps/ebikes-lwc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wdio.conf.js
40 lines (38 loc) · 1.32 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
require('dotenv').config();
const path = require('path');
const { UtamWdioService } = require('wdio-utam-service');
// use prefix 'DEBUG=true' to run test in debug mode
const { DEBUG } = process.env;
const TIMEOUT = DEBUG ? 60 * 1000 * 30 : 60 * 1000;
exports.config = {
runner: 'local',
specs: ['force-app/test/**/*.spec.js'],
maxInstances: 1,
capabilities: [
{
maxInstances: 1,
browserName: 'chrome',
'goog:chromeOptions': {
// to run chrome headless the following flags are required
// (see https://developers.google.com/web/updates/2017/04/headless-chrome)
// args: ['--headless', '--disable-gpu']
}
}
],
logLevel: 'debug',
bail: 0,
// timeout for all waitFor commands
waitforTimeout: TIMEOUT,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
automationProtocol: 'webdriver',
services: ['chromedriver', [UtamWdioService, { implicitTimeout: 0 }]],
framework: 'jasmine',
reporters: ['spec'],
jasmineNodeOpts: {
// max execution time for a script, set to 5 min
defaultTimeoutInterval: 1000 * 60 * 5,
// Temporary workaround to get babel to work in wdio tests
helpers: [path.resolve(process.cwd(), 'wdioJasmineHelper.js')]
}
};