-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
testem.js
44 lines (42 loc) · 1.26 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
const circle = process.env.CIRCLE_TEST_RESULTS;
('use strict');
module.exports = {
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
reporter: circle ? 'xunit' : 'tap',
report_file: circle ? `${circle}/test.xml` : null,
xunit_intermediate_output: true,
launch_in_ci: [
'Chrome',
// 'Firefox', sad to say but Firefox headless struggles with some of these tests
],
launch_in_dev: [],
browser_start_timeout: 120,
browser_args: {
Chrome: {
ci: [
// --no-sandbox is needed when running Chrome inside a container
process.env.CI ? '--no-sandbox' : null,
'--headless',
'--disable-dev-shm-usage',
'--disable-software-rasterizer',
'--ignore-autoplay-restriction',
'--autoplay-policy=no-user-gesture-required',
'--no-user-gesture-required',
'--mute-audio',
'--remote-debugging-port=0',
'--window-size=1440,900',
].filter(Boolean),
},
Firefox: {
mode: 'ci',
args: [
'-headless', // not sure if the flags below even work, but can't find the docs
'--ignore-autoplay-restriction',
'--autoplay-policy=no-user-gesture-required',
'--no-user-gesture-required',
'--mute-audio',
],
},
},
};