The following command sets the screen size to 768 height and 1024 width. An ipad2 in portrait should have 1024 height and 768 width.
cy.viewport("ipad-2", "portrait")
The following command sets the screen size to 1024 height and 768 width. An ipad2 in landscape should have 768 height and 1024 width.
cy.viewport("ipad-2", "landscape")
The following command sets the screen size to
768height and1024width. An ipad2 in portrait should have1024height and768width.The following command sets the screen size to
1024height and768width. An ipad2 in landscape should have768height and1024width.