From 4a1e54596e888a678f42f9f26d80f46b9e39dd59 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Sun, 14 Jun 2020 10:13:25 +0200 Subject: [PATCH] :bug: corrige la selection du taux atmp --- mon-entreprise/cypress/integration/publi.codes/index.js | 1 + mon-entreprise/source/components/conversation/RuleInput.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mon-entreprise/cypress/integration/publi.codes/index.js b/mon-entreprise/cypress/integration/publi.codes/index.js index 7c376ca87..65aecd5b9 100644 --- a/mon-entreprise/cypress/integration/publi.codes/index.js +++ b/mon-entreprise/cypress/integration/publi.codes/index.js @@ -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') }) diff --git a/mon-entreprise/source/components/conversation/RuleInput.tsx b/mon-entreprise/source/components/conversation/RuleInput.tsx index 59b9cc31b..b24a0e239 100644 --- a/mon-entreprise/source/components/conversation/RuleInput.tsx +++ b/mon-entreprise/source/components/conversation/RuleInput.tsx @@ -67,11 +67,11 @@ export default function RuleInput({ ) } if (rule.API && rule.API === 'géo') - return + return 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 + return if (rule.type === 'date') { return (