Commit 39861d74 authored by Mathias Chouet's avatar Mathias Chouet 🍝
Browse files

Update e2e for Grille

parent f55c112a
Pipeline #15758 passed with stages
in 17 minutes and 11 seconds
......@@ -286,13 +286,17 @@ export class CalculatorPage {
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
// Ob in Grille is set to 0.5 but cannot exceed 0.58; do not touch it
const isOb = (await i.getAttribute("id")) === "Ob";
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 && !isN) {
keys = "." + keys;
}
await i.sendKeys(keys);
if (! isOb) {
await i.sendKeys(keys);
}
}
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment