File tree 1 file changed +2
-18
lines changed
1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 17
17
*/
18
18
// eslint-disable-next-line no-unused-vars
19
19
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
38
22
}
You can’t perform that action at this time.
0 commit comments