mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-4126] add roles filtering to people cloud component (#4338)
* in progress * in progress testcase C297674 * linting fixes * modularised clear field method * made the appearance of select user dropdown work. * in progress * final version * linting fixes * linting fixes * in progress * in progress testcase C297674 * linting fixes * modularised clear field method * made the appearance of select user dropdown work. * in progress * final version * linting fixes * linting fixes * ADF-4103 automated * in progress * Roles Filter automated * async updates * removed the identity User details * roleId extraction done. * linting fixes * using constants instead of hardcoding the typing values. * crc's * crc's * linting * removed hte indexes, as api returns only 1 user record. * fixed errors * in progress * redoing the tests as the PeopleGroupCloudPage has been updated. * redoing the tests as the PeopleGroupCloudPage has been updated.
This commit is contained in:
committed by
Eugenio Romano
parent
222b42d5b4
commit
3ac0018160
@@ -23,7 +23,6 @@ export class StartTasksCloudComponent {
|
||||
name = element(by.css('input[id="name_id"]'));
|
||||
dueDate = element(by.css('input[id="date_id"]'));
|
||||
description = element(by.css('textarea[id="description_id"]'));
|
||||
assignee = element(by.css('adf-cloud-people input'));
|
||||
priority = element(by.css('input[formcontrolname="priority"]'));
|
||||
startButton = element(by.css('button[id="button-start"]'));
|
||||
startButtonEnabled = element(by.css('button[id="button-start"]:not(disabled)'));
|
||||
@@ -55,27 +54,6 @@ export class StartTasksCloudComponent {
|
||||
return this;
|
||||
}
|
||||
|
||||
addAssignee(name) {
|
||||
Util.waitUntilElementIsVisible(this.assignee);
|
||||
this.assignee.clear();
|
||||
this.assignee.sendKeys(name);
|
||||
this.selectAssigneeFromList(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
selectAssigneeFromList(name) {
|
||||
let assigneeRow = element(by.cssContainingText('mat-option span.adf-people-label-name', name));
|
||||
Util.waitUntilElementIsVisible(assigneeRow);
|
||||
assigneeRow.click();
|
||||
Util.waitUntilElementIsNotVisible(assigneeRow);
|
||||
return this;
|
||||
}
|
||||
|
||||
getAssignee() {
|
||||
Util.waitUntilElementIsVisible(this.assignee);
|
||||
return this.assignee.getAttribute('value');
|
||||
}
|
||||
|
||||
clickStartButton() {
|
||||
Util.waitUntilElementIsVisible(this.startButton);
|
||||
Util.waitUntilElementIsClickable(this.startButton);
|
||||
|
Reference in New Issue
Block a user