💚 répare les tests E2E
parent
ba5b18bd08
commit
aebc32d995
|
@ -26,7 +26,7 @@ describe('Landing test', function() {
|
|||
? 'Quel régime souhaitez-vous explorer ?'
|
||||
: 'Which social scheme would you like to explore?'
|
||||
)
|
||||
cy.contains(fr ? 'Indépendant' : 'Self-employed').click({ force: true })
|
||||
cy.contains('Indépendant').click({ force: true })
|
||||
cy.contains(
|
||||
fr
|
||||
? 'Simulateur de revenus pour indépendants'
|
||||
|
|
|
@ -31,8 +31,8 @@ describe('Status guide', function() {
|
|||
cy.get('.ui__.answer-group')
|
||||
.contains(fr ? 'Société' : 'Limited liability company')
|
||||
.click()
|
||||
cy.get('.ui__.answer-group')
|
||||
.contains(fr ? 'Assimilé salarié' : 'Assimilated salaried')
|
||||
cy.get('.AS .button')
|
||||
.contains(fr ? 'Choisir' : 'Choose')
|
||||
.click()
|
||||
cy.contains(fr ? 'Créer une SASU' : 'Create a SASU').click()
|
||||
})
|
||||
|
|
|
@ -84,9 +84,9 @@
|
|||
"compile-lib": "yarn webpack --config source/webpack.lib.js",
|
||||
"compile-dev": "FR_SITE='http://localhost:5000${path}' EN_SITE='http://localhost:5001${path}' yarn run compile",
|
||||
"mon-entreprise:serve": "PORT=5000 serve --config serve.mon-entreprise.json --no-clipboard",
|
||||
"mon-entreprise:test": "cypress open",
|
||||
"mon-entreprise:test": "cypress open --browser chromium",
|
||||
"mycompanyinfrance:serve": "PORT=5001 serve --config serve.infrance.json --no-clipboard",
|
||||
"mycompanyinfrance:test": "cypress open --env language=en --config baseUrl=http://localhost:8080/infrance",
|
||||
"mycompanyinfrance:test": "cypress open --browser chromium --env language=en --config baseUrl=http://localhost:8080/infrance",
|
||||
"serve-dev": "yarn run mon-entreprise:serve & yarn run mycompanyinfrance:serve"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import Banner from 'Components/Banner'
|
||||
import salariéConfig from 'Components/simulationConfigs/salarié.yaml'
|
||||
import withSimulationConfig from 'Components/simulationConfigs/withSimulationConfig'
|
||||
import withSitePaths from 'Components/utils/withSitePaths'
|
||||
import { compose } from 'ramda'
|
||||
import React from 'react'
|
||||
|
@ -10,7 +12,8 @@ export default compose(
|
|||
withSitePaths,
|
||||
connect(state => ({
|
||||
showMonEntrepriseLink: !state.conversationStarted
|
||||
}))
|
||||
})),
|
||||
withSimulationConfig(salariéConfig)
|
||||
)(function IframeSimulateurEmbauche({ showMonEntrepriseLink, sitePaths }) {
|
||||
return (
|
||||
<>
|
||||
|
|
Loading…
Reference in New Issue