Cypress · Junior · Question 27 of 75

What does .then() give you in Cypress?

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.

Further reading

Problem with a question

Cypress · Junior · question 27

Test yourself

Take the Cypress · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz