mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fixed the last e2es?
This commit is contained in:
@@ -222,7 +222,7 @@ describe('Task Header cloud component', () => {
|
||||
await taskHeaderCloudPage.statusCardTextItem.checkElementIsReadonly();
|
||||
});
|
||||
|
||||
fit('[C291991] Should be able to assign a task only to the users that have access to the selected app', async () => {
|
||||
it('[C291991] Should be able to assign a task only to the users that have access to the selected app', async () => {
|
||||
await tasksCloudDemoPage.clickStartNewTaskButton();
|
||||
const currentAssignee = await peopleCloudComponentPage.getChipAssignee();
|
||||
await expect(currentAssignee).toContain(testUser.firstName);
|
||||
|
@@ -28,7 +28,7 @@ export class PeopleCloudComponentPage {
|
||||
formFields = new FormFields();
|
||||
labelLocator: Locator = by.css(`label[class*='adf-label']`);
|
||||
inputLocator: Locator = by.css('input');
|
||||
assigneeChipList = $('mat-chip-list[data-automation-id="adf-cloud-people-chip-list"]');
|
||||
assigneeChipList = $('mat-chip-grid[data-automation-id="adf-cloud-people-chip-list"]');
|
||||
noOfUsersDisplayed = $$('mat-option span.adf-people-label-name');
|
||||
|
||||
getAssigneeRowLocatorByContainingName = async (name: string): Promise<ElementFinder> => element.all(by.cssContainingText('mat-option span.adf-people-label-name', name)).first();
|
||||
@@ -64,12 +64,12 @@ export class PeopleCloudComponentPage {
|
||||
|
||||
async getChipAssignee(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.assigneeChipList);
|
||||
return this.assigneeChipList.all(by.css('mat-chip')).first().getText();
|
||||
return this.assigneeChipList.all(by.css('mat-chip-row')).first().getText();
|
||||
}
|
||||
|
||||
async getChipAssigneeCount(): Promise<number> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.assigneeChipList);
|
||||
return this.assigneeChipList.all(by.css('mat-chip')).count();
|
||||
return this.assigneeChipList.all(by.css('mat-chip-row')).count();
|
||||
}
|
||||
|
||||
async checkUserIsDisplayed(name: string): Promise<boolean> {
|
||||
|
@@ -63,7 +63,7 @@ export class StartProcessCloudPage {
|
||||
|
||||
async selectFirstOptionFromProcessDropdown(): Promise<void> {
|
||||
await this.clickProcessDropdownArrow();
|
||||
const selectFirstProcessDropdown = $$('.mdc-list-item__primary-text').first();
|
||||
const selectFirstProcessDropdown = $$('mat-option').first();
|
||||
await BrowserActions.click(selectFirstProcessDropdown);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user