[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:
gmandakini
2019-03-01 23:10:00 +00:00
committed by Eugenio Romano
parent 222b42d5b4
commit 3ac0018160
13 changed files with 573 additions and 60 deletions

View File

@@ -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);