forked from trailheadapps/ebikes-lwc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wdio.conf.js
48 lines (46 loc) · 1.39 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
require('dotenv').config();
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', '--window-size=1920,1080']
}
}
],
logLevel: 'debug',
bail: 0,
// timeout for all waitFor commands
waitforTimeout: TIMEOUT,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
automationProtocol: 'webdriver',
services: [
'chromedriver',
[
UtamWdioService,
{
implicitTimeout: 0,
injectionConfigs: [
'salesforce-pageobjects/ui-utam-pageobjects.config.json'
]
}
]
],
framework: 'jasmine',
reporters: ['spec'],
jasmineNodeOpt: {
// max execution time for a script, set to 5 min
defaultTimeoutInterval: 1000 * 60 * 5
}
};