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

fix(e2e): openNthCalculator() : select option naming does not always start at 0

refs #592
parent 4c2fff02
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!199Resolve "Incohérence dans les fichiers de session"
......@@ -31,8 +31,11 @@ export class Navbar {
const dropDown = element(by.css("mat-select#selectCalculator"));
if (await dropDown.isPresent() && await dropDown.isDisplayed()) {
await dropDown.click();
const optionId = ".cdk-overlay-container mat-option#mat-option-" + n;
const option = element(by.css(optionId));
// 1st option is not necessarly "mat-option-0"...
const options = element.all(by.css(".cdk-overlay-container mat-option"));
const option = options.get(n);
await option.click();
} else {
const tabs = this.getAllCalculatorTabs();
......
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