From a3c614c4dbca6f086f71511b4df3a57d3ba67401 Mon Sep 17 00:00:00 2001
From: "mathias.chouet" <mathias.chouet@irstea.fr>
Date: Thu, 14 Nov 2019 12:19:28 +0100
Subject: [PATCH] Update e2e test for integer only N in YAXN

---
 e2e/calculator.po.ts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/e2e/calculator.po.ts b/e2e/calculator.po.ts
index 59910d18d..c324c85c3 100644
--- a/e2e/calculator.po.ts
+++ b/e2e/calculator.po.ts
@@ -196,10 +196,12 @@ export class CalculatorPage {
     const inputs = this.getParamInputs();
     await inputs.each(async (i) => {
       if (await i.isDisplayed()) {
+        // N in YAXN child of SPP module must not be float
+        const isN = (await i.getAttribute("id")).includes("_N"); // @TODO strengthen this clodo test
         const hasDot = (await i.getAttribute("value")).includes(".");
         const hasExponent = (await i.getAttribute("value")).includes("e");
         let keys = "" + Math.floor(Math.random() * 9) + 1;
-        if (! hasDot && ! hasExponent) {
+        if (! hasDot && ! hasExponent && ! isN) {
           keys = "." + keys;
         }
         await i.sendKeys(keys);
-- 
GitLab