-
-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathwdio.conf.js
More file actions
65 lines (65 loc) · 1.34 KB
/
wdio.conf.js
File metadata and controls
65 lines (65 loc) · 1.34 KB
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
59
60
61
62
63
64
65
const visualOptions = {
apiKey: process.env.SCREENER_API_KEY,
projectName: 'ctm2022',
};
const sauceOptions = {
username: process.env.SAUCE_USERNAME,
accesskey: process.env.SAUCE_ACCESS_KEY,
build: `Visual Tests-${new Date().getTime()}`,
//enable HAR files
extendedDebugging: true,
capturePerformance: true,
};
exports.config = {
region: process.env.REGION || 'us',
services: [
[
'sauce',
{
sauceConnect: true,
},
],
],
specs: ['./test/specs/**/*.js'],
// Patterns to exclude.
exclude: [
// 'path/to/excluded/files'
],
maxInstances: 10,
hostname: 'hub.screener.io',
port: 443,
protocol: 'https',
path: '/wd/hub',
capabilities: [
//Desktop A 28%: https://www.w3schools.com/browsers/browsers_display.asp
{
browserName: 'chrome',
platformName: 'windows 10',
browserVersion: 'latest',
'sauce:options': {
...sauceOptions,
},
'sauce:visual': {
...visualOptions,
viewportSize: '1366x768',
},
},
],
//
// ===================
// Test Configurations
// ===================
// 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',
timeout: 180000,
},
};