-
-
Notifications
You must be signed in to change notification settings - Fork 115
/
testem.js
124 lines (121 loc) · 2.47 KB
/
testem.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
const userName = process.env['BROWSERSTACK_USERNAME'];
const accessKey = process.env['BROWSERSTACK_ACCESS_KEY'];
const canConnectToBrowserStack =
userName &&
userName.trim().length !== 0 &&
accessKey &&
accessKey.trim().length !== 0;
let allBrowsers = [
'Chrome',
'Firefox',
'BS_Safari_Current',
'BS_Safari_Last',
'BS_MS_Edge',
'BS_IE_11',
];
let localBrowsers = ['Chrome'];
let ciBrowsers = canConnectToBrowserStack ? allBrowsers : localBrowsers;
module.exports = {
test_page: 'tests/index.html?hidepassed&nolint¬rycatch',
disable_watching: true,
timeout: 1200,
browser_start_timeout: 2000,
parallel: 4,
launch_in_ci: ciBrowsers,
launch_in_dev: localBrowsers,
browser_args: {
Chrome: {
dev: [
'--no-sandbox',
'--disable-gpu',
'--auto-open-devtools-for-tabs',
'--window-size=1440,900',
].filter(Boolean),
ci: [
'--no-sandbox',
'--disable-gpu',
'--headless',
'--disable-dev-shm-usage',
'--disable-software-rasterizer',
'--mute-audio',
'--remote-debugging-port=0',
'--window-size=1440,900',
].filter(Boolean),
},
Firefox: ['-headless'],
},
launchers: {
BS_Safari_Current: {
exe: 'node_modules/.bin/browserstack-launch',
args: [
'--os',
'OS X',
'--osv',
'High Sierra',
'--b',
'Safari',
'--bv',
'latest',
'-t',
'1200',
'--u',
'<url>',
],
protocol: 'browser',
},
BS_Safari_Last: {
exe: 'node_modules/.bin/browserstack-launch',
args: [
'--os',
'OS X',
'--osv',
'Sierra',
'--b',
'safari',
'--bv',
'10.1',
'-t',
'1200',
'--u',
'<url>',
],
protocol: 'browser',
},
BS_MS_Edge: {
exe: 'node_modules/.bin/browserstack-launch',
args: [
'--os',
'Windows',
'--osv',
'10',
'--b',
'edge',
'--bv',
'latest',
'-t',
'1200',
'--u',
'<url>',
],
protocol: 'browser',
},
BS_IE_11: {
exe: 'node_modules/.bin/browserstack-launch',
args: [
'--os',
'Windows',
'--osv',
'7',
'--b',
'ie',
'--bv',
'11.0',
'-t',
'1500',
'--u',
'<url>',
],
protocol: 'browser',
},
},
};