chore: upgrade cypress (#3231)

This commit is contained in:
Erez Rokah
2020-02-11 18:36:13 +02:00
committed by GitHub
parent 6d5e37dab9
commit e1fa3b0ec0
3 changed files with 181 additions and 222 deletions

View File

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