-
Notifications
You must be signed in to change notification settings - Fork 4
/
wct.conf.js
68 lines (61 loc) · 1.55 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
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
var envIndex = process.argv.indexOf('--env') + 1;
var env = envIndex ? process.argv[envIndex] : undefined;
module.exports = {
testTimeout: 180 * 1000,
verbose: false,
plugins: {
local: {
browserOptions: {
chrome: [
'headless',
'disable-gpu',
'no-sandbox'
]
}
},
// MAGI REMOVE START
istanbul: {
dir: './coverage',
reporters: ['text-summary', 'lcov'],
include: [
'**/vaadin-menu-bar/src/*.html'
],
exclude: [],
thresholds: {
global: {
statements: 98
}
}
}
// MAGI REMOVE END
},
registerHooks: function(context) {
const saucelabsPlatformsMobile = [
'iOS Simulator/iphone@12.2',
// 'iOS Simulator/iphone@10.3' FIXME(web-padawan): timeouts in SauceLabs
];
const saucelabsPlatformsMicrosoft = [
'Windows 10/microsoftedge@18',
'Windows 10/internet explorer@11'
];
const saucelabsPlatformsDesktop = [
'macOS 10.13/safari@latest'
];
const saucelabsPlatforms = [
...saucelabsPlatformsMobile,
...saucelabsPlatformsMicrosoft,
...saucelabsPlatformsDesktop
];
const cronPlatforms = [
'iOS Simulator/ipad@12.2',
// 'iOS Simulator/iphone@10.3',
'Windows 10/chrome@latest',
'Windows 10/firefox@latest'
];
if (env === 'saucelabs') {
context.options.plugins.sauce.browsers = saucelabsPlatforms;
} else if (env === 'saucelabs-cron') {
context.options.plugins.sauce.browsers = cronPlatforms;
}
}
};