Execution Trace Quiz - 3 Questions
Test your understanding
What does the test check when the viewport is set to 375x667?
cy.viewport() in Cypress tests?cy.viewport() rolecy.viewport() changes the browser size to simulate devices.cy.viewport().cy.viewport('ipad-2')
cy.get('.menu').should('be.visible')cy.viewport(1024, 768)
cy.get('#nav').should('be.visible')
cy.viewport('mobile')
cy.get('#nav').should('not.be.visible')Pass the test and this pattern moves unknown