-
Notifications
You must be signed in to change notification settings - Fork 3
/
wct.conf.js
74 lines (67 loc) · 1.7 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
69
70
71
72
73
74
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: [
'**/vcf-enhanced-rich-text-editor/src/*.html'
],
exclude: [],
thresholds: {
global: {
statements: env === 'saucelabs' ? 86 : 100
}
}
}
// MAGI REMOVE END
},
registerHooks: function(context) {
const saucelabsPlatformsMobile = [
'iOS Simulator/[email protected]',
'iOS Simulator/[email protected]'
];
const saucelabsPlatformsMicrosoft = [
'Windows 10/microsoftedge@17',
'Windows 10/internet explorer@11'
];
const saucelabsPlatformsDesktop = [
'macOS 10.13/[email protected]'
];
const saucelabsPlatforms = [
...saucelabsPlatformsMobile,
...saucelabsPlatformsMicrosoft,
...saucelabsPlatformsDesktop
];
const cronPlatforms = [
{
deviceName: 'Android GoogleAPI Emulator',
platformName: 'Android',
platformVersion: '7.1',
browserName: 'chrome'
},
'iOS Simulator/[email protected]',
'iOS Simulator/[email protected]',
'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;
}
}
};