From c280fac70c7705734494786826a7fbb59dbdbf34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Wed, 1 Mar 2023 11:04:35 +0100 Subject: [PATCH] Fix cy intercept --- site/cypress/integration/mon-entreprise/landing.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/cypress/integration/mon-entreprise/landing.ts b/site/cypress/integration/mon-entreprise/landing.ts index 90b27372e..819b57107 100644 --- a/site/cypress/integration/mon-entreprise/landing.ts +++ b/site/cypress/integration/mon-entreprise/landing.ts @@ -53,7 +53,9 @@ describe('Landing page', function () { req.responseTimeout = 10 * 1000 req.continue() } - ) + ).as('search') + + cy.wait('@search') cy.get(searchResultsPath).children().should('have.length', 6) cy.get(searchResultsPath).children().first().click()