test(e2e): update chrome flags (#4027)
This commit is contained in:
parent
12c388eff3
commit
706141d3bb
@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user