-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
karma.browserstack.cjs
244 lines (237 loc) · 7.42 KB
/
karma.browserstack.cjs
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
require('dotenv').config();
module.exports = function (config) {
config.set({
browserStack: {
project: 'Mezr',
name: 'Mezr test',
video: false,
username: process.env.BROWSERSTACK_USERNAME,
accessKey: process.env.BROWSERSTACK_ACCESS_KEY,
},
basePath: '',
frameworks: ['mocha'],
plugins: ['karma-mocha', 'karma-mocha-reporter', 'karma-browserstack-launcher'],
files: ['./node_modules/chai/chai.js', './tests/unit/dist/index.js'],
reporters: ['mocha', 'BrowserStack'],
logLevel: config.LOG_INFO,
colors: true,
autoWatch: false,
browserDisconnectTimeout: 10000,
browserDisconnectTolerance: 2,
singleRun: true,
customLaunchers: {
// Windows 11
bs_Windows_11_Chrome_Latest: {
name: 'Mezr: Windows 11 - Chrome Latest',
base: 'BrowserStack',
browser: 'chrome',
browser_version: 'latest',
os: 'Windows',
os_version: '11',
},
bs_Windows_11_Firefox_Latest: {
base: 'BrowserStack',
name: 'Mezr: Windows 11 - Firefox Latest',
browser: 'firefox',
browser_version: 'latest',
os: 'Windows',
os_version: '11',
},
bs_Windows_11_Edge_Latest: {
name: 'Mezr: Windows 11 - Edge Latest',
base: 'BrowserStack',
browser: 'edge',
browser_version: 'latest',
os: 'Windows',
os_version: '11',
},
// OS X Sonoma
bs_OSX_Sonoma_Chrome_Latest: {
name: 'Mezr: OS X Sonoma - Chrome Latest',
base: 'BrowserStack',
browser: 'chrome',
browser_version: 'latest',
os: 'OS X',
os_version: 'Sonoma',
},
bs_OSX_Sonoma_Firefox_Latest: {
name: 'Mezr: OS X Sonoma - Firefox Latest',
base: 'BrowserStack',
browser: 'firefox',
browser_version: 'latest',
os: 'OS X',
os_version: 'Sonoma',
},
bs_OSX_Sonoma_Edge_Latest: {
name: 'Mezr: OS X Sonoma - Edge Latest',
base: 'BrowserStack',
browser: 'edge',
browser_version: 'latest',
os: 'OS X',
os_version: 'Sonoma',
},
bs_OSX_Sonoma_Safari_Latest: {
name: 'Mezr: OS X Sonoma - Safari Latest',
base: 'BrowserStack',
browser: 'safari',
browser_version: 'latest',
os: 'OS X',
os_version: 'Sonoma',
},
// OS X Ventura
bs_OSX_Ventura_Chrome_Latest: {
name: 'Mezr: OS X Ventura - Chrome Latest',
base: 'BrowserStack',
browser: 'chrome',
browser_version: 'latest',
os: 'OS X',
os_version: 'Ventura',
},
bs_OSX_Ventura_Firefox_Latest: {
name: 'Mezr: OS X Ventura - Firefox Latest',
base: 'BrowserStack',
browser: 'firefox',
browser_version: 'latest',
os: 'OS X',
os_version: 'Ventura',
},
bs_OSX_Ventura_Edge_Latest: {
name: 'Mezr: OS X Ventura - Edge Latest',
base: 'BrowserStack',
browser: 'edge',
browser_version: 'latest',
os: 'OS X',
os_version: 'Ventura',
},
bs_OSX_Ventura_Safari_Latest: {
name: 'Mezr: OS X Ventura - Safari Latest',
base: 'BrowserStack',
browser: 'safari',
browser_version: 'latest',
os: 'OS X',
os_version: 'Ventura',
},
// iOS
bs_iPhone_14_iOS_16_Safari_Latest: {
name: 'Mezr: iPhone 14 - iOS 16 - Safari Latest',
base: 'BrowserStack',
device: 'iPhone 14',
os: 'ios',
os_version: '16',
real_mobile: true,
},
bs_iPhone_15_iOS_17_Safari_Latest: {
name: 'Mezr: iPhone 15 - iOS 17 - Safari Latest',
base: 'BrowserStack',
device: 'iPhone 15',
os: 'ios',
os_version: '17',
real_mobile: true,
},
// Android
bs_Samsung_Galaxy_S23_Android_13_Chrome_Latest: {
name: 'Mezr: Samsung Galaxy S23 - Android 13 - Chrome Latest',
base: 'BrowserStack',
device: 'Samsung Galaxy S23',
os: 'android',
os_version: '13.0',
browser: 'chrome',
browser_version: 'latest',
real_mobile: true,
},
bs_Samsung_Galaxy_S22_Android_12_Chrome_Latest: {
name: 'Mezr: Samsung Galaxy S22 - Android 12 - Chrome Latest',
base: 'BrowserStack',
device: 'Samsung Galaxy S22',
os: 'android',
os_version: '12.0',
browser: 'chrome',
browser_version: 'latest',
real_mobile: true,
},
bs_Samsung_Galaxy_S21_Android_11_Chrome_Latest: {
name: 'Mezr: Samsung Galaxy S21 - Android 11 - Chrome Latest',
base: 'BrowserStack',
device: 'Samsung Galaxy S21',
os: 'android',
os_version: '11.0',
browser: 'chrome',
browser_version: 'latest',
real_mobile: true,
},
bs_Samsung_Galaxy_S20_Android_10_Chrome_Latest: {
name: 'Mezr: Samsung Galaxy S20 - Android 10 - Chrome Latest',
base: 'BrowserStack',
device: 'Samsung Galaxy S20',
os: 'android',
os_version: '10.0',
browser: 'chrome',
browser_version: 'latest',
real_mobile: true,
},
bs_Samsung_Galaxy_S10_Android_9_Chrome_Latest: {
name: 'Mezr: Samsung Galaxy S10 - Android 9 - Chrome Latest',
base: 'BrowserStack',
device: 'Samsung Galaxy S10',
os: 'android',
os_version: '9.0',
browser: 'chrome',
browser_version: 'latest',
real_mobile: true,
},
bs_Google_Pixel_6_Pro_Android_14_Chrome_Latest: {
name: 'Mezr: Google Pixel 6 Pro - Android 14 - Chrome Latest',
base: 'BrowserStack',
device: 'Google Pixel 6 Pro',
os: 'android',
os_version: '14.0',
browser: 'chrome',
browser_version: 'latest',
real_mobile: true,
},
bs_Google_Pixel_7_Android_13_Chrome_Latest: {
name: 'Mezr: Google Pixel 7 - Android 13 - Chrome Latest',
base: 'BrowserStack',
device: 'Google Pixel 7',
os: 'android',
os_version: '13.0',
browser: 'chrome',
browser_version: 'latest',
real_mobile: true,
},
bs_OnePlus_9_Android_11_Chrome_Latest: {
name: 'Mezr: OnePlus 9 - Android 11 - Chrome Latest',
base: 'BrowserStack',
device: 'OnePlus 9',
os: 'android',
os_version: '11.0',
browser: 'chrome',
browser_version: 'latest',
real_mobile: true,
},
},
browsers: [
'bs_Windows_11_Chrome_Latest',
'bs_Windows_11_Firefox_Latest',
'bs_Windows_11_Edge_Latest',
'bs_OSX_Sonoma_Chrome_Latest',
'bs_OSX_Sonoma_Firefox_Latest',
'bs_OSX_Sonoma_Edge_Latest',
'bs_OSX_Sonoma_Safari_Latest',
'bs_OSX_Ventura_Chrome_Latest',
'bs_OSX_Ventura_Firefox_Latest',
'bs_OSX_Ventura_Edge_Latest',
'bs_OSX_Ventura_Safari_Latest',
'bs_iPhone_14_iOS_16_Safari_Latest',
'bs_iPhone_15_iOS_17_Safari_Latest',
'bs_Samsung_Galaxy_S23_Android_13_Chrome_Latest',
'bs_Samsung_Galaxy_S22_Android_12_Chrome_Latest',
'bs_Samsung_Galaxy_S21_Android_11_Chrome_Latest',
'bs_Samsung_Galaxy_S20_Android_10_Chrome_Latest',
'bs_Samsung_Galaxy_S10_Android_9_Chrome_Latest',
'bs_Google_Pixel_6_Pro_Android_14_Chrome_Latest',
'bs_Google_Pixel_7_Android_13_Chrome_Latest',
'bs_OnePlus_9_Android_11_Chrome_Latest',
],
});
};