forked from DJAdriana/uuid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwdio.conf.js
152 lines (140 loc) · 3.08 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/* eslint-disable camelcase */
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
{
'bstack:options': {
...commonCapabilities,
os: 'Windows',
osVersion: '11',
},
browserName: 'Chrome',
browserVersion: '103.0',
},
// Chrome 92 introduced native support for crypto.randomUUID
{
'bstack:options': {
...commonCapabilities,
os: 'Windows',
osVersion: '11',
},
browserName: 'Chrome',
browserVersion: '92.0',
},
// Chrome 49 released on 2016-03-02 was the last version supported on Windows XP, Windows Vista, Mac OS X 10.6, 10.7, and 10.8
{
'bstack:options': {
...commonCapabilities,
os: 'Windows',
osVersion: '10',
},
browserName: 'Chrome',
browserVersion: '49.0',
},
// Firefox
// Latest
{
'bstack:options': {
...commonCapabilities,
os: 'Windows',
osVersion: '11',
},
browserName: 'Firefox',
browserVersion: '103.0',
},
// Firefox 51 was the first Firefox to correctly support const/let
{
'bstack:options': {
...commonCapabilities,
os: 'Windows',
osVersion: '10',
},
browserName: 'Firefox',
browserVersion: '51.0',
},
// Edge
{
'bstack:options': {
...commonCapabilities,
os: 'Windows',
osVersion: '11',
},
browserName: 'Edge',
browserVersion: '103.0',
},
// While Edge 12 already supported const/let, Edge 15 is the earliest Edge available on
// Browserstack
{
'bstack:options': {
...commonCapabilities,
os: 'Windows',
osVersion: '10',
},
browserName: 'Edge',
browserVersion: '15.0',
},
// Safari
{
'bstack:options': {
...commonCapabilities,
os: 'OS X',
osVersion: 'Monterey',
},
browserName: 'Safari',
browserVersion: '15.0',
},
// Safari 11 was the first Safari to correctly support const/let
{
'bstack:options': {
...commonCapabilities,
os: 'OS X',
osVersion: 'High Sierra',
},
browserName: 'Safari',
browserVersion: '11.0',
},
];
exports.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'],
};