From 2207b12ff000ac54dd6a053d5bdac74ebf1ef620 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Tue, 8 Jun 2021 16:41:10 +0200 Subject: [PATCH] :green_heart: fix test cypress --- mon-entreprise/cypress/integration/mon-entreprise/gérer.js | 6 ++++-- .../mon-entreprise/simulateurs-generic/dirigeant-sasu.js | 2 +- netlify.toml | 6 ++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/mon-entreprise/cypress/integration/mon-entreprise/gérer.js b/mon-entreprise/cypress/integration/mon-entreprise/gérer.js index b8601b74f..d903174a6 100644 --- a/mon-entreprise/cypress/integration/mon-entreprise/gérer.js +++ b/mon-entreprise/cypress/integration/mon-entreprise/gérer.js @@ -64,9 +64,11 @@ describe(`Manage page test (${ cy.get('button.cta').click() cy.get('input').first().type('menoz') cy.contains('834364291').click() - cy.contains(fr ? 'simulateur SASU' : 'simulator for SASU').click() + cy.contains( + fr ? 'Calculer mon revenu net de cotisations' : 'Calculate my net income' + ).click() cy.location().should((loc) => { - expect(loc.pathname).to.match(fr ? /dirigeant-sasu$/ : /sasu-chairman$/) + expect(loc.pathname).to.match(/sasu$/) }) }) it('should allow auto entrepreneur to access the corresponding income simulator', function () { diff --git a/mon-entreprise/cypress/integration/mon-entreprise/simulateurs-generic/dirigeant-sasu.js b/mon-entreprise/cypress/integration/mon-entreprise/simulateurs-generic/dirigeant-sasu.js index b8fa0adc2..7f9386adf 100644 --- a/mon-entreprise/cypress/integration/mon-entreprise/simulateurs-generic/dirigeant-sasu.js +++ b/mon-entreprise/cypress/integration/mon-entreprise/simulateurs-generic/dirigeant-sasu.js @@ -1,3 +1,3 @@ import { runSimulateurTest } from '../../../support/simulateur' -runSimulateurTest('dirigeant-sasu') +runSimulateurTest('sasu') diff --git a/netlify.toml b/netlify.toml index 80b29cd7f..9b43b3d8b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -66,6 +66,12 @@ Content-Security-Policy-Report-Only = "default-src 'self' mon-entreprise.fr; sty to = ":SITE_FR/documentation/contrat-salari%C3%A9/r%C3%A9mun%C3%A9ration/:splat" status = 301 +# EN | sasu-chairman -> sasu +[[redirects]] + from=":SITE_FR/simulateurs/sasu-chairman" + to=":SITE_FR/simulateurs/sasu" + status = 301 + # Embauche redirection settings [[redirects]]