[affected:*][ci:force] Fixing e2e - the lord of E2E

This commit is contained in:
Vito Albano
2024-03-14 14:55:43 +00:00
committed by VitoAlbano
parent 779be0e759
commit 593c278d00
3 changed files with 11 additions and 7 deletions

View File

@@ -27,13 +27,13 @@ import { BrowserActions, BrowserVisibility, FormFields, materialLocators } from
export class TasksPage {
createButton = $('button[data-automation-id="create-button"');
addChecklistButton = $('button[class*="adf-add-to-checklist-button"]');
rowByRowName = by.xpath(`ancestor::${materialLocators.Chip.root}`);
rowByRowName = by.xpath(`ancestor::${materialLocators.Chip.list.option.class}`);
checklistContainer = $('div[class*="checklist-menu"]');
taskTitle = '.adf-activiti-task-details__header span';
completeButtonNoForm = $('#adf-no-form-complete-button');
checklistDialog = $('#checklist-dialog');
checklistNoMessage = $('#checklist-none-message');
numberOfChecklists = $(`[data-automation-id="checklist-label"] ${materialLocators.Chip.root}`);
numberOfChecklists = $(`[data-automation-id="checklist-label"] ${materialLocators.Chip.list.option.value}`);
async createNewTask(): Promise<StartTaskDialogPage> {
await this.clickOnCreateButton();
@@ -82,7 +82,7 @@ export class TasksPage {
}
getRowsName(name: string) {
return this.checklistContainer.element(by.cssContainingText('span', name));
return this.checklistContainer.element(by.cssContainingText(`span${materialLocators.Chip.list.option.value}`, name));
}
getChecklistByName(name: string) {