Skip to content

Commit

Permalink
fix: revert plugins file changes (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
panzarino committed May 21, 2021
1 parent 93c6f24 commit 319d0d3
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions cypress/plugins/index.js
Expand Up @@ -17,22 +17,6 @@
*/
// eslint-disable-next-line no-unused-vars
module.exports = (on, config) => {
on('before:browser:launch', (browser, launchOptions) => {
if (browser.name === 'chrome' && browser.isHeadless) {
launchOptions.args.push('--window-size=1280,720')
launchOptions.args.push('--force-device-scale-factor=1')
}

if (browser.name === 'electron' && browser.isHeadless) {
launchOptions.preferences.width = 1280
launchOptions.preferences.height = 720
}

if (browser.name === 'firefox' && browser.isHeadless) {
launchOptions.args.push('--width=1280')
launchOptions.args.push('--height=720')
}

return launchOptions
})
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
}

0 comments on commit 319d0d3

Please sign in to comment.