Cypress · Middle · Question 41 of 77
What does retries: { runMode: 2 } mean?
- 1The whole run is repeated twice if anything fails
- 2Every test is always run twice in
cypress run - 3Failed tests are retried up to two times in
cypress run
Show the answer
Correct answer: Failed tests are retried up to two times in cypress run
Explanation
Retries reduce noise from rare glitches. Tests that pass only on retry are flaky and should be fixed.