-
Notifications
You must be signed in to change notification settings - Fork 47
/
wdio.sanity.conf.js
58 lines (57 loc) · 1.47 KB
/
wdio.sanity.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
50
51
52
53
54
55
56
57
58
const sauceOptions = {
extendedDebugging: true,
capturePerformance: true,
};
exports.config = {
runner: 'local',
// user,key,region must be here for wdio/sauce tests
user: process.env.SAUCE_USERNAME,
key: process.env.SAUCE_ACCESS_KEY,
region: process.env.REGION || 'us',
services: [
['sauce', {
sauceConnect: true,
sauceConnectOpts: {
noSslBumpDomains: 'all',
},
}]
],
specs: [
'./test/specs/**/sanity.spec.js'
],
// Patterns to exclude.
exclude: [
// 'path/to/excluded/files'
],
//
// ============
// Capabilities
// ============
maxInstances: 100,
capabilities: [
//Desktop A 28%: https://www.w3schools.com/browsers/browsers_display.asp
{
browserName: 'chrome',
platformName: 'windows 10',
browserVersion: 'latest',
'sauce:options': {
...sauceOptions,
}
}
],
// Level of logging verbosity: trace | debug | info | warn | error | silent
logLevel: 'error',
bail: 0,
baseUrl: 'http://localhost:3000',
waitforTimeout: 10000,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
framework: 'mocha',
reporters: ['spec'],
mochaOpts: {
ui: 'bdd',
//set at least this timeout since visual snapshots can take up to 45 sec
//https://docs.saucelabs.com/visual/e2e-testing/setup/#useful-settings
timeout: 180000,
},
}