Cypress · Middle · Question 3 of 77
Why can an action in the middle of a chain break retrying?
cy.get("input").type("abc").should("have.value", "abc");- 1Actions make the whole chain run twice on failure
- 2Actions disable retries for the rest of the spec
- 3Actions aren't retried, so only queries after them retry
Show the answer
Correct answer: Actions aren't retried, so only queries after them retry
Explanation
If the .type() happened on an element that re-rendered, retrying the assertion can't redo the typing. Split long chains around actions.