mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-5761] Demo Shell pages cleanup (#8802)
remove the content that is not covered by e2e testing, preparation steps for the demo shell decommissioning
This commit is contained in:
@@ -28,18 +28,10 @@ export class AttachFormPage {
|
||||
defaultTitle = $('.mat-card-title');
|
||||
attachFormDropdown = new DropdownPage($('.adf-attach-form-row'));
|
||||
|
||||
async checkNoFormMessageIsDisplayed(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.noFormMessage);
|
||||
}
|
||||
|
||||
async checkAttachFormButtonIsDisplayed(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.attachFormButton);
|
||||
}
|
||||
|
||||
async checkCompleteButtonIsDisplayed(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.completeButton);
|
||||
}
|
||||
|
||||
async clickAttachFormButton(): Promise<void> {
|
||||
await BrowserActions.click(this.attachFormButton);
|
||||
}
|
||||
|
@@ -29,7 +29,6 @@ export class ProcessDetailsPage {
|
||||
backButton = TestElement.byCss('app-show-diagram button.mat-mini-fab.mat-accent');
|
||||
commentInput = TestElement.byId('comment-input');
|
||||
auditLogButton = TestElement.byCss('button[adf-process-audit]');
|
||||
auditLogEmptyListMessage = TestElement.byCss('.app-empty-list-header');
|
||||
cancelProcessButton = TestElement.byCss('div[data-automation-id="header-status"] > button');
|
||||
activeTask = TestElement.byCss('div[data-automation-id="active-tasks"]');
|
||||
completedTask = TestElement.byCss('div[data-automation-id="completed-tasks"]');
|
||||
|
@@ -28,7 +28,6 @@ export class ProcessFiltersPage {
|
||||
buttonWindow = $('div > button[data-automation-id="btn-start-process"] > div');
|
||||
noContentMessage = $$('.adf-empty-content__title').first();
|
||||
rows = $$('adf-process-instance-list .adf-datatable-body adf-datatable-row[class*="adf-datatable-row"]');
|
||||
tableBody = $$('adf-datatable .adf-datatable-body').first();
|
||||
processIcon = 'adf-icon[data-automation-id="adf-filter-icon"]';
|
||||
startProcessEl = $('adf-start-process .adf-start-process');
|
||||
|
||||
|
@@ -26,8 +26,8 @@ export class ProcessListDemoPage {
|
||||
processDefinitionInput = $('input[data-automation-id="process-definition-id"]');
|
||||
processInstanceInput = $('input[data-automation-id="process-instance-id"]');
|
||||
|
||||
stateDropdown = new DropdownPage($('mat-select[data-automation-id="state"'));
|
||||
sortDropdown = new DropdownPage($('mat-select[data-automation-id="sort"'));
|
||||
stateDropdown = new DropdownPage($('mat-select[data-automation-id="state"]'));
|
||||
sortDropdown = new DropdownPage($('mat-select[data-automation-id="sort"]'));
|
||||
|
||||
dataTable = new DataTableComponentPage();
|
||||
|
||||
|
@@ -19,7 +19,6 @@ import { BrowserVisibility, BrowserActions } from '@alfresco/adf-testing';
|
||||
import { $ } from 'protractor';
|
||||
|
||||
export class ProcessListPage {
|
||||
|
||||
processListTitle = $('.adf-empty-content__title');
|
||||
processInstanceList = $('adf-process-instance-list');
|
||||
|
||||
@@ -27,10 +26,6 @@ export class ProcessListPage {
|
||||
return BrowserActions.getText(this.processListTitle);
|
||||
}
|
||||
|
||||
titleNotPresent(): Promise<string> {
|
||||
return BrowserVisibility.waitUntilElementIsNotPresent(this.processListTitle);
|
||||
}
|
||||
|
||||
async isProcessListDisplayed(): Promise<boolean> {
|
||||
try {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.processInstanceList);
|
||||
@@ -39,5 +34,4 @@ export class ProcessListPage {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -58,11 +58,8 @@ export class TaskDetailsPage {
|
||||
removeInvolvedPeople = $('button[data-automation-id="Remove"]');
|
||||
peopleTitle = $('#people-title');
|
||||
noFormMessage = $('span[id*="no-form-message"]');
|
||||
cancelAttachForm = $('#adf-no-form-cancel-button');
|
||||
attachFormButton = $('#adf-no-form-attach-form-button');
|
||||
disabledAttachFormButton = $('button[id="adf-no-form-attach-form-button"][disabled]');
|
||||
removeAttachForm = $('#adf-attach-form-remove-button');
|
||||
attachFormName = $('.adf-form-title');
|
||||
emptyTaskDetails = $('adf-task-details > div > div');
|
||||
priority = $('[data-automation-id*="card-textitem-value-priority"]');
|
||||
editableAssignee = $('[data-automation-id="card-textitem-value-assignee"][class*="clickable"]');
|
||||
@@ -94,22 +91,10 @@ export class TaskDetailsPage {
|
||||
await this.attachFormDropdown.checkOptionIsSelected(formName);
|
||||
}
|
||||
|
||||
async checkAttachFormButtonIsDisabled(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.disabledAttachFormButton);
|
||||
}
|
||||
|
||||
async checkAttachFormButtonIsEnabled(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsClickable(this.attachFormButton);
|
||||
}
|
||||
|
||||
async checkAttachFormDropdownIsDisplayed(): Promise<void> {
|
||||
await this.attachFormDropdown.checkDropdownIsVisible();
|
||||
}
|
||||
|
||||
async selectAttachFormOption(option): Promise<void> {
|
||||
await this.attachFormDropdown.selectDropdownOption(option);
|
||||
}
|
||||
|
||||
async noFormIsDisplayed(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsNotVisible(this.formContent);
|
||||
}
|
||||
@@ -139,10 +124,6 @@ export class TaskDetailsPage {
|
||||
await BrowserVisibility.waitUntilElementHasValue(this.formNameField, formName);
|
||||
}
|
||||
|
||||
getFormName(): Promise<string> {
|
||||
return BrowserActions.getInputValue(this.formNameField);
|
||||
}
|
||||
|
||||
async waitFormNameEqual(formName: string): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementHasValue(this.formNameField, formName);
|
||||
}
|
||||
|
@@ -45,9 +45,4 @@ export class TaskFiltersPage {
|
||||
async clickTaskFilter(): Promise<void> {
|
||||
return BrowserActions.click(this.filter);
|
||||
}
|
||||
|
||||
async checkTaskFilterNotDisplayed(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsNotVisible(this.filter);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -83,10 +83,6 @@ export class TaskListDemoPage {
|
||||
await this.taskList().getDataTable().waitTillContentLoaded();
|
||||
}
|
||||
|
||||
async getProcessDefinitionId(): Promise<string> {
|
||||
return BrowserActions.getInputValue(this.processInstanceId);
|
||||
}
|
||||
|
||||
async typeProcessInstanceId(input: string): Promise<void> {
|
||||
await BrowserActions.clearSendKeys(this.processInstanceId, input);
|
||||
}
|
||||
@@ -105,10 +101,6 @@ export class TaskListDemoPage {
|
||||
await BrowserActions.clearSendKeys(this.page, input.toString());
|
||||
}
|
||||
|
||||
async getPage(): Promise<string> {
|
||||
return BrowserActions.getInputValue(this.page);
|
||||
}
|
||||
|
||||
async getPageFieldErrorMessage(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.pageForm);
|
||||
const errorMessage = this.pageForm.$('mat-error');
|
||||
@@ -123,11 +115,6 @@ export class TaskListDemoPage {
|
||||
await BrowserActions.clearSendKeys(this.dueBefore, input);
|
||||
}
|
||||
|
||||
async clearText(input): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(input);
|
||||
await input.clear();
|
||||
}
|
||||
|
||||
async clickResetButton(): Promise<void> {
|
||||
await BrowserActions.closeMenuAndDialogs();
|
||||
await BrowserActions.click(this.resetButton);
|
||||
|
@@ -53,10 +53,6 @@ export class TasksPage {
|
||||
await dialog.clickStartButton();
|
||||
}
|
||||
|
||||
async newTaskButtonIsDisplayed(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.newTaskButton);
|
||||
}
|
||||
|
||||
async clickOnCreateButton(): Promise<void> {
|
||||
await BrowserActions.click(this.createButton);
|
||||
}
|
||||
|
Reference in New Issue
Block a user