Fixed the last e2es?

This commit is contained in:
Vito Albano
2023-12-21 10:13:28 +00:00
parent 646b7d9bfa
commit ccd35e5552
3 changed files with 5 additions and 5 deletions

View File

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

View File

@@ -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> {

View File

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