You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, cy.viewport() allows the option to pass a preset value instead of a separate height/width.
However, in the Cypress configuration file, only viewportHeight and viewportWidth are available.
It would be helpful to allow the option to set a preset viewport globally via configuration.
Why is this needed?
For convenience, primarily. Instead of having to manually look up and set the height and width for specific devices, to be able to set using a preset in configuration (and, by extension, setting via --config at run time) would be easier when testing multiple device viewports.
Other
No response
The text was updated successfully, but these errors were encountered:
Bump on this.
Seems like something that should definitely work, using the presets, even if that means still passing the height and width values separately, but using the preset, e.g.
What would you like?
Currently, cy.viewport() allows the option to pass a preset value instead of a separate height/width.
However, in the Cypress configuration file, only
viewportHeight
andviewportWidth
are available.It would be helpful to allow the option to set a preset viewport globally via configuration.
Why is this needed?
For convenience, primarily. Instead of having to manually look up and set the height and width for specific devices, to be able to set using a preset in configuration (and, by extension, setting via
--config
at run time) would be easier when testing multiple device viewports.Other
No response
The text was updated successfully, but these errors were encountered: