diff --git a/e2e/calculator.po.ts b/e2e/calculator.po.ts index 59910d18d4cca60e5cae4b6dbbace582f84701d2..c324c85c35fd2981e3f79ea227d0dbe962da3a1c 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);