2016-11-14 16:16:51 +03:00
|
|
|
/* eslint-env node */
|
2017-07-31 12:38:46 +03:00
|
|
|
/* eslint-disable camelcase */
|
2019-03-11 18:31:23 +03:00
|
|
|
|
2020-02-14 13:35:02 +03:00
|
|
|
let launch_in_ci = [process.env.BROWSER || 'Chrome'];
|
2019-03-11 18:31:23 +03:00
|
|
|
|
2016-03-01 10:38:03 +03:00
|
|
|
module.exports = {
|
2017-07-31 12:38:46 +03:00
|
|
|
framework: 'mocha',
|
2020-02-14 13:35:02 +03:00
|
|
|
browser_disconnect_timeout: 60,
|
2017-07-31 12:38:46 +03:00
|
|
|
test_page: 'tests/index.html?hidepassed',
|
|
|
|
disable_watching: true,
|
2019-03-11 21:16:01 +03:00
|
|
|
parallel: process.env.EMBER_EXAM_SPLIT_COUNT || 1,
|
2019-03-11 18:31:23 +03:00
|
|
|
launch_in_ci,
|
2017-07-31 12:38:46 +03:00
|
|
|
launch_in_dev: [
|
2016-03-01 10:38:03 +03:00
|
|
|
'Chrome',
|
|
|
|
'Firefox'
|
2017-09-02 12:19:07 +03:00
|
|
|
],
|
|
|
|
browser_args: {
|
2017-10-12 18:42:10 +03:00
|
|
|
Chrome: {
|
2019-01-02 12:58:55 +03:00
|
|
|
ci: [
|
2018-02-28 20:31:43 +03:00
|
|
|
// --no-sandbox is needed when running Chrome inside a container
|
2019-01-02 12:58:55 +03:00
|
|
|
process.env.CI ? '--no-sandbox' : null,
|
2017-09-02 12:19:07 +03:00
|
|
|
'--headless',
|
2019-01-02 12:58:55 +03:00
|
|
|
'--disable-dev-shm-usage',
|
|
|
|
'--disable-software-rasterizer',
|
|
|
|
'--mute-audio',
|
2017-12-13 15:27:15 +03:00
|
|
|
'--remote-debugging-port=0',
|
2017-09-02 12:19:07 +03:00
|
|
|
'--window-size=1440,900'
|
2018-02-28 20:31:43 +03:00
|
|
|
].filter(Boolean)
|
2019-03-11 18:02:32 +03:00
|
|
|
},
|
|
|
|
Firefox: {
|
|
|
|
ci: ['-headless']
|
2017-09-02 12:19:07 +03:00
|
|
|
}
|
|
|
|
}
|
2016-03-01 10:38:03 +03:00
|
|
|
};
|