test(e2e): update chrome flags (#4027)

This commit is contained in:
Erez Rokah 2020-07-15 18:17:24 +03:00 committed by GitHub
parent 12c388eff3
commit 706141d3bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,15 +178,7 @@ module.exports = async (on, config) => {
on('before:browser:launch', (browser = {}, launchOptions) => { on('before:browser:launch', (browser = {}, launchOptions) => {
if (browser.name === 'chrome') { if (browser.name === 'chrome') {
// to allows usage of a mock proxy launchOptions.args.push('--disable-dev-shm-usage');
launchOptions.args.push('--ignore-certificate-errors');
launchOptions.args.push('-disable-gpu');
if (browser.isHeaded) {
launchOptions.args.push('--window-size=1200,1200');
} else {
launchOptions.args.push('--window-size=1200,1077');
}
return launchOptions; return launchOptions;
} }
}); });