Skip to content
Snippets Groups Projects
Commit f27fb4fd authored by François Grand's avatar François Grand
Browse files

fix(e2e): MacroRugoRemous test failure

refs #609
parent 7656589c
No related branches found
No related tags found
No related merge requests found
......@@ -2,20 +2,24 @@ import { ListPage } from "./list.po";
import { PreferencesPage } from "./preferences.po";
import { Navbar } from "./navbar.po";
import { browser, $, $$, expect } from '@wdio/globals'
import { isElementDisplayed } from "./util.po";
import { isElementDisplayed, openCalculator } from "./util.po";
import { CalculatorPage } from "./calculator.po";
import { newSession } from "./util.po";
import { SideNav } from "./sidenav.po";
describe("MacroRugoRemous - ", () => {
let prefPage: PreferencesPage;
let listPage: ListPage;
let navBar: Navbar;
let calcPage: CalculatorPage;
let sideNav: SideNav;
beforeAll(() => {
prefPage = new PreferencesPage();
listPage = new ListPage();
navBar = new Navbar();
calcPage = new CalculatorPage();
sideNav = new SideNav();
});
beforeEach(async () => {
......@@ -81,13 +85,10 @@ describe("MacroRugoRemous - ", () => {
});
it("check select error message when target PAM has a variated parameter", async () => {
// start page
await navBar.clickNewCalculatorButton();
await browser.pause(200);
await newSession(navBar, sideNav);
// PAM calculator
await listPage.clickMenuEntryForCalcType(11);
browser.pause(200);
// open PAM calculator
await openCalculator(11, navBar, listPage);
// set ZF1 to variated mode
const zf1 = await calcPage.getInputById("ZF1");
......
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