Files
cypress/system-tests/lib/pluginUtils.js
Bill Glesias af3839d990 misc: replace marionette-client with geckodriver as b2g marionette client is no longer supported (#30250)
* misc: replace marionette-client with geckodriver as b2g marionette client is no longer supported [run ci]

* install pump [run ci]

* refactor to have geckodriver launch the browser and split out webdriver to own class [run ci]

fix other failing tests [run ci]

fix other failing tests [run ci]

pass env variables to firefox

* fix sigkill / treekill issues on windows with firefox binary being a dangling process [run ci]

* fix issue where browser in headed mode was not starting maximized [run ci]

* stub firefox_spec added deps different to get type inference

* add comment to geckodriver patch

* move capabilities to verbose debug statement

* update changelog

* address comments from code review

* add pending for changelog

* update with suggestions from code review

* remove debug enable as the process needs to be bound to stderr and stdout

* add comment on why we need to bind

* add comments from code review

* address comments from code review

* make sure sessionId is set
2024-09-30 12:19:03 -04:00

21 lines
782 B
JavaScript

module.exports = {
useFixedBrowserLaunchSize (browser, options, config) {
if (config.env['NO_RESIZE']) return
if (browser.family === 'firefox') {
// this is needed to ensure correct error screenshot / video recording
// resolution of exactly 1280x720
// (height must account for firefox url bar, which we can only shrink to 1px ,
// and the total size of the window url and tab bar, which is 85 pixels for a total offset of 86 pixels)
options.args.push(
'-width', '1280', '-height', '806',
)
} else if (browser.name === 'electron') {
options.preferences.width = 1280
options.preferences.height = 720
} else if (browser.family === 'chromium') {
options.args.push('--window-size=1280,720')
}
},
}