Merge pull request #1074 from betagouv/quickfix-johan
🐛 corrige la selection du taux atmp
pull/1077/head
commit
88104f7858
|
@ -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')
|
||||
})
|
||||
|
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue