-
Notifications
You must be signed in to change notification settings - Fork 2
/
wct.conf.js
41 lines (35 loc) · 1.03 KB
/
wct.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
var envIndex = process.argv.indexOf('--env') + 1;
var env = envIndex ? process.argv[envIndex] : undefined;
module.exports = {
registerHooks: function(context) {
const saucelabsPlatformsMobile = [
'macOS 10.12/[email protected]',
'macOS 10.12/[email protected]',
'macOS 9.3.2/[email protected]'
];
const saucelabsPlatformsMicrosoft = [
'Windows 10/microsoftedge@16',
'Windows 10/internet explorer@11'
];
const saucelabsPlatformsDesktop = [
'Windows 10/chrome@65',
'Windows 10/firefox@59',
'macOS 10.13/[email protected]'
];
const saucelabsPlatforms = [
...saucelabsPlatformsMobile,
...saucelabsPlatformsMicrosoft,
...saucelabsPlatformsDesktop
];
const cronPlatforms = [
'Android/chrome',
'Windows 10/chrome@65',
'Windows 10/firefox@59'
];
if (env === 'saucelabs') {
context.options.plugins.sauce.browsers = saucelabsPlatforms;
} else if (env === 'saucelabs-cron') {
context.options.plugins.sauce.browsers = cronPlatforms;
}
}
};