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

MàJ test PAB

parent c884e939
No related branches found
No related tags found
1 merge request!45Resolve "Ajout du module de calcul d'une passe à bassins"
import { ListPage } from "./list.po";
import { CalculatorPage } from "./calculator.po";
import { Navbar } from "./navbar.po";
/**
* For all calculators, try to calculate every parameter: check that only one parameter
......@@ -8,10 +9,12 @@ import { CalculatorPage } from "./calculator.po";
describe("ngHyd − calculate all parameters of all calculators", () => {
let listPage: ListPage;
let calcPage: CalculatorPage;
let navBar: Navbar;
beforeEach(() => {
listPage = new ListPage();
calcPage = new CalculatorPage();
navBar = new Navbar();
});
// get calculators list (IDs) @TODO read it from config !
......@@ -23,6 +26,15 @@ describe("ngHyd − calculate all parameters of all calculators", () => {
it("", async () => {
// go to list page
await listPage.navigateTo();
// special case for PAB: create a Cloisons and an Ouvrages before
if (ct === 15) {
await listPage.clickMenuEntryForCalcType(8);
await navBar.clickNewCalculatorButton();
await listPage.clickMenuEntryForCalcType(10);
await navBar.clickNewCalculatorButton();
}
// click calculator button (instanciate)
await listPage.clickMenuEntryForCalcType(ct);
// get all parameters IDs
......
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