Cypress · Junior · Question 18 of 75

What does .should('be.visible') do?

Show the answer

Correct answer: Asserts visibility, retrying until it passes or times out

Explanation

Assertions chained with .should() make Cypress retry the previous query, which handles content that appears later.

Further reading

Problem with a question

Cypress · Junior · question 18

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