Complete the code to navigate one step back in browser history using Cypress.
cy.[1]()goBack() which is not a Cypress command.back() which is not a valid Cypress command.navigate() which does not exist in Cypress.The cy.go() command is used to navigate through the browser history in Cypress. Calling cy.go() without arguments defaults to going back one step.
Complete the code to move two steps forward in browser history using Cypress.
cy.go([1])Passing 2 as an argument to cy.go() moves forward two steps in the browser history.
Fix the error in the code to move one step back in browser history.
cy.go([1])To move one step back, pass -1 as a number to cy.go().
Fill both blanks to move one step forward and then one step back in browser history.
cy.go([1]) cy.go([2])
Passing 1 moves forward one step, and -1 moves back one step in browser history.
Fill all three blanks to move two steps back, then one step forward, then one step back in browser history.
cy.go([1]) cy.go([2]) cy.go([3])
Passing -2 moves two steps back, 1 moves one step forward, and -1 moves one step back in browser history.