Cypress · Senior · Question 35 of 76
What are the limits of mobile testing with cy.viewport?
- 1It can't change the window size in headless mode
- 2It emulates iOS Safari and Android Chrome exactly
- 3Only size changes; touch, engines and devices aren't real
Show the answer
Correct answer: Only size changes; touch, engines and devices aren't real
Explanation
Use viewport tests for responsive layout; real-device testing covers mobile browsers and gestures.