Skip to content

Commit

Permalink
Fixed the last e2es?
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano committed Dec 21, 2023
1 parent dd1d486 commit e161ba4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e161ba4

Please sign in to comment.