From f3a82794c789c69c10dc82b90f36266d7f3ac503 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Wed, 13 Apr 2022 17:58:00 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Ajoute=20un=20test=20d'int=C3=A9gra?= =?UTF-8?q?tion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pour la détection de l'entreprise via le cookie Urssaf --- .../detection-entreprise-cookie.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 site/cypress/integration/mon-entreprise/detection-entreprise-cookie.js diff --git a/site/cypress/integration/mon-entreprise/detection-entreprise-cookie.js b/site/cypress/integration/mon-entreprise/detection-entreprise-cookie.js new file mode 100644 index 000000000..fa11d0a12 --- /dev/null +++ b/site/cypress/integration/mon-entreprise/detection-entreprise-cookie.js @@ -0,0 +1,18 @@ +const fr = Cypress.env('language') === 'fr' + +describe("Détection de l'entreprise depuis le cookie urssaf.fr", function () { + if (!fr) { + return + } + before(function () { + cy.setCookie( + 'EnLigne', + 'siret=34473897600010&nom=Magnin&prenom=Clarisse&sl_retour_service=' + ) + return cy.visit('/') + }) + + it('should display the name of the company set in the cookie', function () { + cy.contains('MC KINSEY', { timeout: 10000 }) + }) +})