Last active
October 12, 2021 19:32
-
-
Save filiphric/62405f00809871655df82f5a3ae23feb to your computer and use it in GitHub Desktop.
Using cy.viewport() command to test different resolutions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('viewport test', () => { | |
cy.visit('/') | |
cy.viewport(320, 480) | |
cy.viewport('iphone-5') | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment