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 }) + }) +})