Cypress - Navigation and URL
You want to test navigation between three pages: '/start', '/middle', and '/end'. You write:
What does
cy.visit('/start')
cy.visit('/middle')
cy.visit('/end')
cy.go(-2)
cy.url().should('include', '/start')What does
cy.go(-2) do here, and why is the assertion correct?