lecture 9 of 190 completed

Waiting properly

A fixed pause is a guess. Too short and the test fails; too long and every run wastes time.

What you'll learn

  • Why a fixed pause is a guess that fails in both directions
  • How Cypress retrying removes the need for manual waits
  • The difference between cy.wait(number) and cy.wait('@alias')

Saving a contact takes about 700 milliseconds. So the obvious thing to write is this:

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 →