💚 fix test cypress
parent
d841e34b9c
commit
2207b12ff0
|
@ -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 () {
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
import { runSimulateurTest } from '../../../support/simulateur'
|
||||
|
||||
runSimulateurTest('dirigeant-sasu')
|
||||
runSimulateurTest('sasu')
|
||||
|
|
|
@ -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]]
|
||||
|
|
Loading…
Reference in New Issue