[ADF-3959] Fixing trashcan-pagination tests (#4222)

This commit is contained in:
Marouan Bentaleb
2019-02-01 13:20:17 +00:00
committed by Eugenio Romano
parent 2036e026f3
commit c00e230983
6 changed files with 56 additions and 38 deletions

View File

@@ -34,8 +34,8 @@ export class FormControllersPage {
Util.waitUntilElementIsVisible(toggle);
toggle.getAttribute('class').then((check) => {
if (check.indexOf('mat-checked') >= 0) {
Util.waitUntilElementIsClickable(toggle.element(by.css('div')));
toggle.element(by.css('div')).click();
Util.waitUntilElementIsClickable(toggle.all(by.css('div')).first());
toggle.all(by.css('div')).first().click();
}
});
}