lecture 1 of 150 completed

How retrying really works

Cypress retries only the last command before your check. Once you know this, confusing failures start to make sense.

What you'll learn

  • Which command Cypress retries, and which it does not
  • Why moving a value out of the chain breaks retrying
  • How this explains failures that look impossible

The first time this happens it looks like a Cypress bug. The test fails, you open the video, and the button is clearly disabled on the screen. The explanation is not obvious until you know how retrying works.

Let's start with that test.

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 →