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