From 9f0c8be183b770f450d2794e1ed400e63394858c Mon Sep 17 00:00:00 2001 From: David Arnold Date: Sun, 17 Sep 2023 14:44:41 +0200 Subject: [PATCH] test: add failing test case for js flt --- cypress/integration/control_float.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cypress/integration/control_float.js b/cypress/integration/control_float.js index 65aa21ed69..50452c6fee 100644 --- a/cypress/integration/control_float.js +++ b/cypress/integration/control_float.js @@ -83,6 +83,23 @@ context("Control Float", () => { }, ], }, + { + // '.' is the parseFloat's decimal separator + number_format: "#.###,##", + values: [ + { + input: "12.345", + blur_expected: "12.345", + focus_expected: "12345", + }, + { + // parseFloat would reduce 12,340 to 12,34 if this string was ever to be parsed + input: "12.340", + blur_expected: "12.340", + focus_expected: "12340", + }, + ], + }, ]; } });