Cypress · Junior · Question 73 of 75

What is a common mistake when asserting on text that loads asynchronously?

Show the answer

Correct answer: Reading text with .then() and comparing without retry

Explanation

.then() runs once with whatever text exists. .should() keeps retrying until the text arrives.

Further reading

Problem with a question

Cypress · Junior · question 73

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