Cypress · Middle · Question 69 of 77

How do you assert that a button becomes enabled after a form is valid?

Show the answer

Correct answer: .should('be.enabled'), which retries until valid

Explanation

Retrying assertions cover the moment between typing and validation finishing.

Further reading

Problem with a question

Cypress · Middle · question 69

Test yourself

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

Take this quiz