-
-
Notifications
You must be signed in to change notification settings - Fork 903
/
wdio.conf.js
101 lines (86 loc) · 1.82 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
const PORT = 9000;
const PROJECT = process.env.GITHUB_REPOSITORY || 'node-uuid';
const GITHUB_SHA = process.env.GITHUB_SHA || '';
const GITHUB_REF = process.env.GITHUB_REF || '';
const BUILD = GITHUB_SHA || GITHUB_REF ? `${GITHUB_REF} ${GITHUB_SHA}` : 'manual build';
const commonCapabilities = {
projectName: PROJECT,
buildName: BUILD,
sessionName: 'browser test',
resolution: '1024x768',
};
const capabilities = [
// Chrome Latest
{
browserName: 'Chrome',
browserVersion: 'latest',
'bstack:options': {
...commonCapabilities,
os: 'Windows',
osVersion: '11',
},
},
// Firefox Latest
{
browserName: 'Firefox',
browserVersion: 'latest',
'bstack:options': {
...commonCapabilities,
os: 'Windows',
osVersion: '11',
},
},
// Edge Latest
{
browserName: 'Edge',
browserVersion: 'latest',
'bstack:options': {
...commonCapabilities,
os: 'Windows',
osVersion: '11',
},
},
// Safari Latest
{
browserName: 'Safari',
browserVersion: 'latest',
'bstack:options': {
...commonCapabilities,
os: 'OS X',
osVersion: 'Monterey',
},
},
];
export const config = {
specs: ['./test/browser/browser.spec.js'],
user: process.env.BROWSERSTACK_USER,
key: process.env.BROWSERSTACK_ACCESS_KEY,
services: [
[
'static-server',
{
folders: [{ mount: '/', path: './examples' }],
port: PORT,
},
],
[
'browserstack',
{
browserstackLocal: true,
},
],
],
runner: 'local',
maxInstances: 5,
capabilities,
logLevel: 'warn',
bail: 1,
waitforTimeout: 10000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
framework: 'jasmine',
jasmineOpts: {
defaultTimeoutInterval: 120000,
},
reporters: ['spec'],
};