From e161ba489a433de6930a021b64389036ada6f957 Mon Sep 17 00:00:00 2001 From: Vito Albano Date: Thu, 21 Dec 2023 10:13:28 +0000 Subject: [PATCH] Fixed the last e2es? --- .../task-list/task-header-cloud.e2e.ts | 2 +- .../pages/people-cloud-component.page.ts | 6 +++--- .../pages/start-process-cloud-component.page.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/process-services-cloud/task-list/task-header-cloud.e2e.ts b/e2e/process-services-cloud/task-list/task-header-cloud.e2e.ts index ce8844c034a..6856529b2cd 100644 --- a/e2e/process-services-cloud/task-list/task-header-cloud.e2e.ts +++ b/e2e/process-services-cloud/task-list/task-header-cloud.e2e.ts @@ -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); diff --git a/lib/testing/src/lib/protractor/process-services-cloud/pages/people-cloud-component.page.ts b/lib/testing/src/lib/protractor/process-services-cloud/pages/people-cloud-component.page.ts index 130e5f79a91..ad907599447 100644 --- a/lib/testing/src/lib/protractor/process-services-cloud/pages/people-cloud-component.page.ts +++ b/lib/testing/src/lib/protractor/process-services-cloud/pages/people-cloud-component.page.ts @@ -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 => element.all(by.cssContainingText('mat-option span.adf-people-label-name', name)).first(); @@ -64,12 +64,12 @@ export class PeopleCloudComponentPage { async getChipAssignee(): Promise { 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 { 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 { diff --git a/lib/testing/src/lib/protractor/process-services-cloud/pages/start-process-cloud-component.page.ts b/lib/testing/src/lib/protractor/process-services-cloud/pages/start-process-cloud-component.page.ts index a2ae95030ab..6da46179f23 100644 --- a/lib/testing/src/lib/protractor/process-services-cloud/pages/start-process-cloud-component.page.ts +++ b/lib/testing/src/lib/protractor/process-services-cloud/pages/start-process-cloud-component.page.ts @@ -63,7 +63,7 @@ export class StartProcessCloudPage { async selectFirstOptionFromProcessDropdown(): Promise { await this.clickProcessDropdownArrow(); - const selectFirstProcessDropdown = $$('.mdc-list-item__primary-text').first(); + const selectFirstProcessDropdown = $$('mat-option').first(); await BrowserActions.click(selectFirstProcessDropdown); }