mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3786] Automated tests for Search Sorting (#4046)
This commit is contained in:
committed by
Eugenio Romano
parent
478b299960
commit
8d9cd54163
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user