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:

members only

Keep reading with the full course

The Foundations track and the first 5 lectures of each framework are free. This lecture is part of the paid course, which unlocks every lecture, all three frameworks, and downloads.

See the options →