Cypress · Junior · Question 27 of 75
What does .then() give you in Cypress?
- 1The yielded subject, to work with in a callback
- 2A retry of the previous command on failure
- 3A real Promise you can
awaitanywhere
Show the answer
Correct answer: The yielded subject, to work with in a callback
Explanation
.then() doesn't retry. Use .should() with a callback when you need retrying checks.