[ADF-3786] Automated tests for Search Sorting (#4046)

This commit is contained in:
Marouan Bentaleb
2018-12-21 17:52:08 +00:00
committed by Eugenio Romano
parent 478b299960
commit 8d9cd54163
23 changed files with 732 additions and 183 deletions

View File

@@ -16,6 +16,7 @@
*/
import { Util } from '../../../util/util';
import { by } from 'protractor';
export class FormControllersPage {
@@ -23,8 +24,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();
}
});
}