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

Update PAB e2e test

parent 2488aa04
No related branches found
No related tags found
Loading
...@@ -32,6 +32,16 @@ describe("ngHyd − Passe à Bassins", () => { ...@@ -32,6 +32,16 @@ describe("ngHyd − Passe à Bassins", () => {
// check that pab-table is present // check that pab-table is present
const innerFieldsets = element.all(by.css(".pab-data-table")); const innerFieldsets = element.all(by.css(".pab-data-table"));
expect(await innerFieldsets.count()).toBe(1); expect(await innerFieldsets.count()).toBe(1);
// calculate PAB
const calcButton = calcPage.getCalculateButton();
await calcButton.click();
// check that result is not empty
const hasResults = await calcPage.hasResults();
expect(hasResults).toBe(true);
// check absence of logs
expect(await calcPage.nbLogEntries()).toBe(0);
}); });
}); });
...@@ -95,7 +105,15 @@ describe("ngHyd − Passe à Bassins", () => { ...@@ -95,7 +105,15 @@ describe("ngHyd − Passe à Bassins", () => {
const innerFieldsets = element.all(by.css("td.basin_number")); const innerFieldsets = element.all(by.css("td.basin_number"));
expect(await innerFieldsets.count()).toBe(5); expect(await innerFieldsets.count()).toBe(5);
// @TODO check more stuff // calculate PAB
const calcButton = calcPage.getCalculateButton();
await calcButton.click();
// check that result is not empty
const hasResults = await calcPage.hasResults();
expect(hasResults).toBe(true);
// check absence of logs
expect(await calcPage.nbLogEntries()).toBe(0);
}); });
}); });
......
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