Cypress · Middle · Question 69 of 77
How do you assert that a button becomes enabled after a form is valid?
- 1
.should('be.enabled'), which retries until valid - 2
.click({ force: true })to skip the check - 3
.then(($b) => expect($b).enabled)once
Show the answer
Correct answer: .should('be.enabled'), which retries until valid
Explanation
Retrying assertions cover the moment between typing and validation finishing.