-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathwdio.conf.js
49 lines (46 loc) · 1.35 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
49
/*
* Copyright (c) 2021, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
require('dotenv').config();
const { UtamWdioService } = require('wdio-utam-service');
// use prefix 'DEBUG=true' to run test in debug mode
const { DEBUG } = process.env;
const EXPLICIT_TIMEOUT = 60 * 1000;
const DEBUG_TIMEOUT = EXPLICIT_TIMEOUT * 30;
exports.config = {
runner: 'local',
specs: ['force-app/test/**/*.spec.js'],
maxInstances: 1,
capabilities: [
{
maxInstances: 1,
browserName: 'chrome',
browserVersion: '120.0.6099.62',
},
],
logLevel: 'debug',
bail: 0,
// timeout for all waitFor commands
waitforTimeout: DEBUG ? DEBUG_TIMEOUT : EXPLICIT_TIMEOUT,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
automationProtocol: 'webdriver',
services: [
[
UtamWdioService,
{
implicitTimeout: 0,
injectionConfigs: ['salesforce-pageobjects/ui-global-components.config.json'],
},
],
],
framework: 'jasmine',
reporters: ['spec'],
jasmineOpts: {
// max execution time for a script, set to 5 min
defaultTimeoutInterval: 1000 * 60 * 5,
},
};