UI_tests_fix: add condition for highlighted navigation menu item
@@ -216,7 +216,10 @@ public interface Conditions {
Condition selectedMenuItem = new Condition("selected navigation menu item") {
@Override
public boolean apply(final WebElement element) {
- return hasClass("navigation__navigation-menu-item-selected").apply(element);
+ return Condition.or("selected navigation menu item",
+ cssClass("navigation__navigation-menu-item-selected"),
+ cssClass("navigation__highlighted-navigation-menu-item-selected"))
+ .apply(element);
}
};
}
