cy.wait(200) cy.viewport('macbook-13') cy.wait(200) cy.viewport('macbook-11') cy.wait(200) cy.viewport('ipad cy.viewport() accepts an orientation for all presets // the default orientation is 'portrait' cy.viewport('ipad
不再展开讲了 orientation 屏幕的方向 默认:纵向, portrait 可改横向, landscape preset 预设值,Cypress 提供了以下的预设值 预设值 宽度 高度 ipad