🐛 corrige la selection du taux atmp

pull/1074/head
Johan Girod 2020-06-14 10:13:25 +02:00
parent fd87035c44
commit 4a1e54596e
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 (