Cypress · Middle · Question 43 of 77
How can animations cause flaky Cypress tests?
- 1Elements move or are covered while Cypress tries to act
- 2Cypress refuses to run on pages with CSS animations
- 3Animations disable all of Cypress's retry logic
Show the answer
Correct answer: Elements move or are covered while Cypress tries to act
Explanation
Cypress waits for elements to stop animating, but long or looping animations still cause trouble. Disable them in test builds.