Skip to content

Commit 319d0d3

Browse files
authored
fix: revert plugins file changes (#491)
1 parent 93c6f24 commit 319d0d3

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

cypress/plugins/index.js

+2-18
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,6 @@
1717
*/
1818
// eslint-disable-next-line no-unused-vars
1919
module.exports = (on, config) => {
20-
on('before:browser:launch', (browser, launchOptions) => {
21-
if (browser.name === 'chrome' && browser.isHeadless) {
22-
launchOptions.args.push('--window-size=1280,720')
23-
launchOptions.args.push('--force-device-scale-factor=1')
24-
}
25-
26-
if (browser.name === 'electron' && browser.isHeadless) {
27-
launchOptions.preferences.width = 1280
28-
launchOptions.preferences.height = 720
29-
}
30-
31-
if (browser.name === 'firefox' && browser.isHeadless) {
32-
launchOptions.args.push('--width=1280')
33-
launchOptions.args.push('--height=720')
34-
}
35-
36-
return launchOptions
37-
})
20+
// `on` is used to hook into various events Cypress emits
21+
// `config` is the resolved Cypress config
3822
}

0 commit comments

Comments
 (0)