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 (