Cypress · Senior · Question 4 of 76
What is the most common root cause of flaky Cypress tests in large suites?
- 1Running the suite in headless mode instead of headed
- 2Using
data-cyattributes instead of CSS classes for selectors - 3Shared state and timing assumptions, like fixed waits or leaked data
Show the answer
Correct answer: Shared state and timing assumptions, like fixed waits or leaked data
Explanation
Most flakes trace to tests depending on each other, on real timing, or on shared backend data. Fix the cause; retries only hide it.