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:

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 →