Add retries to cypress to avoid flaky tests

pull/2196/head
Jérémy Rialland 2022-06-27 10:01:02 +02:00 committed by Jérémy Rialland
parent 5a4f55e63a
commit 17910e2430
1 changed files with 8 additions and 0 deletions

View File

@ -12,4 +12,12 @@ export default defineConfig({
baseUrl: 'http://localhost:8888',
specPattern: 'cypress/integration/mon-entreprise/**/*.{js,jsx,ts,tsx}',
},
retries: {
// Configure retry attempts for `cypress run`
// Default is 0
runMode: 2,
// Configure retry attempts for `cypress open`
// Default is 0
openMode: 0,
},
})