7900 shaares
161 private links
161 private links
In cypress.config.ts, property e2e.setupNodeEvents for a screen 1920x1080 :
on('before:browser:launch', (browser = {}, args) => {
if (browser.name === 'chrome') {
args.push('--window-size=1920,1080')
return args
}
})
This goes for chrome, but there also a workaround for Electron: https://github.com/cypress-io/cypress/issues/2102#issuecomment-692585453