Cypress · Junior · Question 41 of 75
What does cy.viewport('iphone-x') do?
- 1Switches the browser to Safari on iOS
- 2Opens the test on a real iPhone device
- 3Sets the window size to that device preset
Show the answer
Correct answer: Sets the window size to that device preset
Explanation
It changes the size only. It doesn't emulate the iOS browser engine or touch behaviour fully.