From bceafe11be9bd1cbed9eec32fc60a6840f5ee6fc Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Mon, 18 Feb 2019 17:08:26 +0100 Subject: [PATCH] :green_heart: Corrige le test sur demo.mon-entreprise.fr --- cypress/integration/embauche/embauche.js | 2 +- cypress/integration/embauche/iframe.js | 2 +- cypress/integration/external/external-integrations.js | 4 ++-- source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/integration/embauche/embauche.js b/cypress/integration/embauche/embauche.js index 96a3e80e4..5f9cbd6ba 100644 --- a/cypress/integration/embauche/embauche.js +++ b/cypress/integration/embauche/embauche.js @@ -13,7 +13,7 @@ describe('Landing basic test', function() { }) it('should display the simulateur after loading', function() { cy.visit('/') - cy.contains('Versé sur le compte bancaire') + cy.contains('Versé sur son compte bancaire') }) it('should display cotisation repartition when entering net salary', function() { cy.visit('/') diff --git a/cypress/integration/embauche/iframe.js b/cypress/integration/embauche/iframe.js index 302869e8c..6e795688d 100644 --- a/cypress/integration/embauche/iframe.js +++ b/cypress/integration/embauche/iframe.js @@ -3,6 +3,6 @@ describe('Iframe integration test', function() { cy.visit('/integration-test') cy.get('#simulateurEmbauche') .iframe() - .contains('Versé sur le compte bancaire') + .contains('Versé sur son compte bancaire') }) }) diff --git a/cypress/integration/external/external-integrations.js b/cypress/integration/external/external-integrations.js index f8e0ca121..7adf2b478 100644 --- a/cypress/integration/external/external-integrations.js +++ b/cypress/integration/external/external-integrations.js @@ -6,7 +6,7 @@ describe('Pole emploi', function() { cy.visit('https://entreprise.pole-emploi.fr/cout-salarie/') cy.get('#simulateurEmbauche') .iframe() - .contains('Versé sur le compte bancaire') + .contains('Versé sur son compte bancaire') }) }) @@ -17,6 +17,6 @@ describe('URSSAF', function() { ) cy.get('#simulateurEmbauche') .iframe() - .contains('Versé sur le compte bancaire') + .contains('Versé sur son compte bancaire') }) }) diff --git a/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js b/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js index fe5b553c5..50c4372cc 100644 --- a/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js +++ b/source/sites/mycompanyinfrance.fr/layout/Footer/Footer.js @@ -53,7 +53,7 @@ const Footer = ({ colours: { colour }, tracker, t, sitePaths }) => { : '') + window.location.pathname ).replace(/\/$/, '') ] || [] - + console.log('test demo', {hrefLangLink, ENSITE: process.env.EN_SITE, FRSITE: process.env.FR_SITE}) return (