mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[affected:*][ci:force] Fixing e2e - the lord of E2E
This commit is contained in:
@@ -21,8 +21,8 @@ import { BrowserVisibility, BrowserActions } from '@alfresco/adf-testing';
|
|||||||
export class ChecklistDialog {
|
export class ChecklistDialog {
|
||||||
|
|
||||||
nameField = $('input[data-automation-id="checklist-name"]');
|
nameField = $('input[data-automation-id="checklist-name"]');
|
||||||
addChecklistButton = $('button[id="add-check"] span');
|
addChecklistButton = $('button[id="add-check"]');
|
||||||
closeButton = $('button[id="close-check-dialog"] span');
|
closeButton = $('button[id="close-check-dialog"]');
|
||||||
dialogTitle = $('#add-checklist-title');
|
dialogTitle = $('#add-checklist-title');
|
||||||
|
|
||||||
async addName(name: string): Promise<void> {
|
async addName(name: string): Promise<void> {
|
||||||
|
@@ -27,13 +27,13 @@ import { BrowserActions, BrowserVisibility, FormFields, materialLocators } from
|
|||||||
export class TasksPage {
|
export class TasksPage {
|
||||||
createButton = $('button[data-automation-id="create-button"');
|
createButton = $('button[data-automation-id="create-button"');
|
||||||
addChecklistButton = $('button[class*="adf-add-to-checklist-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"]');
|
checklistContainer = $('div[class*="checklist-menu"]');
|
||||||
taskTitle = '.adf-activiti-task-details__header span';
|
taskTitle = '.adf-activiti-task-details__header span';
|
||||||
completeButtonNoForm = $('#adf-no-form-complete-button');
|
completeButtonNoForm = $('#adf-no-form-complete-button');
|
||||||
checklistDialog = $('#checklist-dialog');
|
checklistDialog = $('#checklist-dialog');
|
||||||
checklistNoMessage = $('#checklist-none-message');
|
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> {
|
async createNewTask(): Promise<StartTaskDialogPage> {
|
||||||
await this.clickOnCreateButton();
|
await this.clickOnCreateButton();
|
||||||
@@ -82,7 +82,7 @@ export class TasksPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getRowsName(name: string) {
|
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) {
|
getChecklistByName(name: string) {
|
||||||
|
@@ -95,8 +95,12 @@ export const materialLocators = {
|
|||||||
root: 'mat-chip',
|
root: 'mat-chip',
|
||||||
class: '.mat-mdc-chip',
|
class: '.mat-mdc-chip',
|
||||||
list: {
|
list: {
|
||||||
root: 'mat-chip-list',
|
root: 'mat-chip-listbox',
|
||||||
class: '.mat-mdc-chip-list'
|
class: '.mat-mdc-chip-list',
|
||||||
|
option: {
|
||||||
|
class: 'mat-chip-option',
|
||||||
|
value: '.mat-mdc-chip-action-label'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
root: 'mat-chip-grid',
|
root: 'mat-chip-grid',
|
||||||
|
Reference in New Issue
Block a user