Skip to content
Snippets Groups Projects
Commit 39861d74 authored by mathias.chouet's avatar mathias.chouet
Browse files

Update e2e for Grille

parent f55c112a
No related branches found
No related tags found
No related merge requests found
Pipeline #138382 passed
......@@ -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);
}
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment