lecture 10 of 190 completed

Moving around the app

cy.visit, clicking links, and checking the URL. Plus why asserting on the address is a real test, not a formality.

What you'll learn

  • How to move between pages inside a test
  • Why asserting the URL turns a vague failure into a clear one
  • What reloading the page proves that a message does not

Every test starts by going somewhere. That sounds trivial, and there is one habit here that catches real bugs.

cy.visit loads a page:

full course

Keep reading with the full course

The Foundations track and the first lessons in each framework are free. This lesson needs full course access. A course plan includes all lessons for Playwright, Cypress and Selenium.

See course plans →