From 17910e2430b782199aea6e3856f3007bb87e1d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Mon, 27 Jun 2022 10:01:02 +0200 Subject: [PATCH] Add retries to cypress to avoid flaky tests --- site/cypress.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/site/cypress.config.ts b/site/cypress.config.ts index a5935a1a0..f05c51f31 100644 --- a/site/cypress.config.ts +++ b/site/cypress.config.ts @@ -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, + }, })