Lower minimum viewport dimension bound
See original GitHub issue- Operating System: macOS High Sierra (10.13.3)
- Cypress Version: 2.1.0
- Browser Version: Chrome 64.0.3282.186
Current behavior:
Setting the viewport height or width bellow 200
pixels is currently not allowed. In the docs, it is stated that the height and width values must lie within the bounds of 200
to 3000
pixels.
Desired behavior:
To me, the desired behavior would be to allow setting values bellow 200
with my situation being that our web app is meant to be embedded within an iframe on other sites where it’s layout relies on the viewport size, which height can be as small as 80
pixels. This makes us want to test down to this viewport size.
It would be very interesting to hear why this lower dimension bound exists and why it is currently 200
pixels. Any insight into this would be much appreciated. Could it be lowered or removed? I really like Cypress so far and hope to be able to use it.
How to reproduce:
Call cy.viewport(199, 199)
and you’ll get the warning I’m talking about.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
Released in
3.0.0
.@dallaspersson 👍