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

fix(e2e): only run select tests (session reload) if option count is 2 or more

refs #585
parent 7742a202
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,7 @@ describe("ngHyd − save and load sessions", () => {
const options = await calcPage.getMatselectOptionsText(sel);
const optionCount = options.length;
if (optionCount > 0) {
if (optionCount > 1) {
// index of current selected option
const optTxt = await calcPage.getMatselectCurrentOptionText(sel);
const ind = options.indexOf(optTxt);
......
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