mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[affected:*][ci:force] Fixed other e2es
This commit is contained in:
@@ -97,7 +97,15 @@ export const materialLocators = {
|
||||
list: {
|
||||
root: 'mat-chip-list',
|
||||
class: '.mat-mdc-chip-list'
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
root: 'mat-chip-grid',
|
||||
class: '.mat-mdc-chip-grid',
|
||||
row: {
|
||||
root: 'mat-chip-row',
|
||||
class: '.mat-mdc-chip-row'
|
||||
}
|
||||
}
|
||||
},
|
||||
Datepicker: {
|
||||
root: 'mat-datepicker',
|
||||
|
@@ -29,8 +29,8 @@ export class PeopleCloudComponentPage {
|
||||
formFields = new FormFields();
|
||||
labelLocator: Locator = by.css(`label[class*='adf-label']`);
|
||||
inputLocator: Locator = by.css('input');
|
||||
assigneeChipList = $(`${materialLocators.Chip.list.root}[data-automation-id="adf-cloud-people-chip-list"]`);
|
||||
noOfUsersDisplayed = $$(`${materialLocators.Chip.list.root} span.adf-people-label-name`);
|
||||
assigneeChipList = $(`${materialLocators.Chip.grid.root}[data-automation-id="adf-cloud-people-chip-list"]`);
|
||||
noOfUsersDisplayed = $$(`${materialLocators.Chip.grid.root} span.adf-people-label-name`);
|
||||
|
||||
getAssigneeRowLocatorByContainingName = async (name: string): Promise<ElementFinder> => element.all(by.cssContainingText(`${materialLocators.Option.root} span.adf-people-label-name`, name)).first();
|
||||
|
||||
@@ -65,12 +65,12 @@ export class PeopleCloudComponentPage {
|
||||
|
||||
async getChipAssignee(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.assigneeChipList);
|
||||
return this.assigneeChipList.all(by.css(materialLocators.Chip.root)).first().getText();
|
||||
return this.assigneeChipList.all(by.css(materialLocators.Chip.grid.row.root)).first().getText();
|
||||
}
|
||||
|
||||
async getChipAssigneeCount(): Promise<number> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.assigneeChipList);
|
||||
return this.assigneeChipList.all(by.css(materialLocators.Chip.root)).count();
|
||||
return this.assigneeChipList.all(by.css(materialLocators.Chip.grid.row.root)).count();
|
||||
}
|
||||
|
||||
async checkUserIsDisplayed(name: string): Promise<boolean> {
|
||||
|
Reference in New Issue
Block a user