💚 répare les tests E2E

pull/525/head
Johan Girod 2019-05-14 11:49:09 +02:00
parent ba5b18bd08
commit aebc32d995
No known key found for this signature in database
GPG Key ID: 9E27B57DA2E8AE12
5 changed files with 888 additions and 1013 deletions

View File

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

View File

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

View File

@ -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": {

View File

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

1886
yarn.lock

File diff suppressed because it is too large Load Diff