Commit 99e3b003 authored by Dorchies David's avatar Dorchies David
Browse files

Merge branch '547-liens-inaccessibles-pour-certains-modules' into 'devel'

Resolve "Liens inaccessibles pour certains modules"

Closes #551 and #547

See merge request !147
parents 6814da95 a10638d6
Pipeline #37112 canceled with stages
in 4 seconds
......@@ -98,9 +98,6 @@ describe("ngHyd − compute then reset chained results − ", () => {
await browser.sleep(500);
expect(await navbar.getAllCalculatorTabs().count()).toBe(3);
// dirty hack : get unwanted module first to prevent Calc button
// of PAB Dimensions to be greyed-out @WTF
await navbar.clickCalculatorTabForUid("Y2s1cG");
// 1. get down-most module (PAB Dimensions)
await navbar.clickCalculatorTabForUid("eHh5YX");
......
......@@ -80,13 +80,24 @@ describe("ngHyd − load session with multiple linked parameters − ", () => {
await browser.sleep(500);
// check target params values
const lo_z2 = calcPage.getSelectById("linked_Z2");
const lo_z2v = await calcPage.getSelectValueText(lo_z2);
expect(lo_z2v).toContain("Cote de fond aval (Macro-rugo.)");
const lo_l = calcPage.getSelectById("1_linked_L");
const lo_lv = await calcPage.getSelectValueText(lo_l);
expect(lo_lv).toContain("Largeur au miroir (Sec. param.)");
// const lo_z2 = calcPage.getSelectById("linked_Z2");
// const lo_z2v = await calcPage.getSelectValueText(lo_z2);
// expect(lo_z2v).toContain("Cote de fond aval (Macro-rugo.)");
/**
* depuis qu'on interdit les liens vers des paramètres cachés/liés eux mêmes,
* l'appli les remplace par un paramètre en mode fixé (valeur undefined) lors du chargement d'une session
* jalhyd#289/adf6009
* nghyd#551
*/
const inpZ2 = calcPage.getInputById("Z2");
expect(await inpZ2.getAttribute("value")).toEqual("");
// const lo_l = calcPage.getSelectById("1_linked_L");
// const lo_lv = await calcPage.getSelectValueText(lo_l);
// expect(lo_lv).toContain("Largeur au miroir (Sec. param.)");
const inpL = calcPage.getInputById("1_L");
expect(await inpL.getAttribute("value")).toEqual("");
const lo_w = calcPage.getSelectById("2_linked_W");
const lo_wv = await calcPage.getSelectValueText(lo_w);
......@@ -97,9 +108,10 @@ describe("ngHyd − load session with multiple linked parameters − ", () => {
await browser.sleep(500);
// check target params values
const lo_br = calcPage.getSelectById("linked_BR");
const lo_brv = await calcPage.getSelectValueText(lo_br);
expect(lo_brv).toContain("Largeur au miroir (Sec. param.)");
// const lo_br = calcPage.getSelectById("linked_BR");
// const lo_brv = await calcPage.getSelectValueText(lo_br);
// expect(lo_brv).toContain("Largeur au miroir (Sec. param.)");
const inpBR = calcPage.getInputById("BR");
expect(await inpBR.getAttribute("value")).toEqual("");
});
});
......@@ -120,7 +120,7 @@
"symbol": "Q",
"mode": "LINK",
"targetNub": "MGg5OH",
"targetParam": "Q_GuideTech"
"targetParam": "Q"
},
{
"symbol": "D",
......
devel
289-liens-inaccessibles-pour-certains-modules
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