Merge pull request #1074 from betagouv/quickfix-johan

🐛 corrige la selection du taux atmp
pull/1077/head
Johan Girod 2020-06-15 10:41:46 +02:00 committed by GitHub
commit 88104f7858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ describe('Navigation', function() {
})
it('bac à sable should work', function() {
cy.contains('Bac à sable').click()
cy.wait(1000)
cy.contains('Dépenses primeur')
cy.contains('11,50')
})

View File

@ -67,11 +67,11 @@ export default function RuleInput({
)
}
if (rule.API && rule.API === 'géo')
return <SelectGéo {...{ ...commonProps }} onSubmit={onSubmit} />
return <SelectGéo {...commonProps} onSubmit={onSubmit} />
if (rule.API) throw new Error("Le seul API implémenté est l'API géo")
if (rule.dottedName == 'contrat salarié . ATMP . taux collectif ATMP')
return <SelectAtmp {...commonProps} />
return <SelectAtmp {...commonProps} onSubmit={onSubmit} />
if (rule.type === 'date') {
return (