@revoloo/cypress6
Version:
Cypress.io end to end testing tool
12 lines (11 loc) • 412 B
JavaScript
module.exports = {
useFixedFirefoxResolution (browser, options, config) {
if (browser.family === 'firefox' && !config.env['NO_RESIZE']) {
// this is needed to ensure correct error screenshot / video recording
// resolution of exactly 1280x720 (height must account for firefox url bar)
options.args = options.args.concat(
['-width', '1280', '-height', '794'],
)
}
},
}