Cypress · Junior · Question 60 of 75
How can test retries be enabled in Cypress?
- 1
retries: { runMode: 2, openMode: 0 }in config - 2
it.retry(2)before each test - 3
cypress run --repeaton the command line
Show the answer
Correct answer: retries: { runMode: 2, openMode: 0 } in config
Explanation
Retries help with rare glitches in CI. Tests that pass on retry should still be investigated as flaky.