💚 fix test cypress

pull/1620/head
Johan Girod 2021-06-08 16:41:10 +02:00
parent d841e34b9c
commit 2207b12ff0
3 changed files with 11 additions and 3 deletions

View File

@ -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 () {

View File

@ -1,3 +1,3 @@
import { runSimulateurTest } from '../../../support/simulateur'
runSimulateurTest('dirigeant-sasu')
runSimulateurTest('sasu')

View File

@ -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]]