From 9f119b4fedfddf8c4f5da9bd52a04babc6005435 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Wed, 3 Jun 2020 10:25:53 +0200 Subject: [PATCH] augmente le debounce des champs de saisi, afin de ne pas avoir d'effet bloquant --- .../cypress/integration/mon-entreprise/simulateurs.js | 2 +- mon-entreprise/source/components/TargetSelection.tsx | 2 +- mon-entreprise/source/components/conversation/RuleInput.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mon-entreprise/cypress/integration/mon-entreprise/simulateurs.js b/mon-entreprise/cypress/integration/mon-entreprise/simulateurs.js index 2d2e09039..3a856d3dc 100644 --- a/mon-entreprise/cypress/integration/mon-entreprise/simulateurs.js +++ b/mon-entreprise/cypress/integration/mon-entreprise/simulateurs.js @@ -20,7 +20,7 @@ describe('Simulateurs', function() { } cy.get(inputSelector).each((testedInput, i) => { cy.wrap(testedInput).type('{selectall}60000') - cy.wait(800) + cy.wait(1500) cy.contains('Cotisations') cy.get(inputSelector).each(($input, j) => { const val = $input.val().replace(/[\s,.]/g, '') diff --git a/mon-entreprise/source/components/TargetSelection.tsx b/mon-entreprise/source/components/TargetSelection.tsx index b4ab61aac..7e8ec3ac5 100644 --- a/mon-entreprise/source/components/TargetSelection.tsx +++ b/mon-entreprise/source/components/TargetSelection.tsx @@ -225,7 +225,7 @@ function TargetInputOrValue({ color: colors.textColor, borderColor: colors.textColor }} - debounce={600} + debounce={1000} name={target.dottedName} value={value} className={ diff --git a/mon-entreprise/source/components/conversation/RuleInput.tsx b/mon-entreprise/source/components/conversation/RuleInput.tsx index 25a0fe68f..589aa01ee 100644 --- a/mon-entreprise/source/components/conversation/RuleInput.tsx +++ b/mon-entreprise/source/components/conversation/RuleInput.tsx @@ -113,7 +113,7 @@ export default function RuleInput({