mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4089] Refactoring ContentListPage (#4162)
* [ADF-NO-ISSUE] Refactoring ContentListPage * Applying changes * [ADF-4089] contentListPage refactoring * Fixing missing dependencies * Fixing core and search failing tests * Fix tooltip document-list tests * no message
This commit is contained in:
committed by
Eugenio Romano
parent
88ef01011e
commit
27c6e18a10
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import { Util } from '../../../util/util';
|
||||
import { DataTablePage } from '../dataTablePage';
|
||||
import { DataTableComponentPage } from '../dataTableComponentPage';
|
||||
import { element, by } from 'protractor';
|
||||
|
||||
let column = {
|
||||
@@ -28,12 +28,64 @@ export class TaskListCloudComponent {
|
||||
taskList = element(by.css('adf-cloud-task-list'));
|
||||
noTasksFound = element.all(by.css("p[class='adf-empty-content__title']")).first();
|
||||
|
||||
dataTable = new DataTablePage(this.taskList);
|
||||
dataTable = new DataTableComponentPage(this.taskList);
|
||||
|
||||
getDataTable() {
|
||||
return this.dataTable;
|
||||
}
|
||||
|
||||
clickCheckbox(taskName) {
|
||||
return this.dataTable.clickCheckbox('Name', taskName);
|
||||
}
|
||||
|
||||
checkRowIsNotChecked(taskName) {
|
||||
return this.dataTable.checkRowIsNotChecked('Name', taskName);
|
||||
}
|
||||
|
||||
checkRowIsChecked(taskName) {
|
||||
return this.dataTable.checkRowIsChecked('Name', taskName);
|
||||
}
|
||||
|
||||
getRowsWithSameName(taskName) {
|
||||
return this.dataTable.getRowsWithSameColumnValues('Name', taskName);
|
||||
}
|
||||
|
||||
checkRowIsSelected(taskName) {
|
||||
return this.dataTable.checkRowIsSelected('Name', taskName);
|
||||
}
|
||||
|
||||
checkRowIsNotSelected(taskName) {
|
||||
return this.dataTable.checkRowIsNotSelected('Name', taskName);
|
||||
}
|
||||
|
||||
selectRowWithKeyboard(taskName) {
|
||||
return this.dataTable.selectRowWithKeyboard('Name', taskName);
|
||||
}
|
||||
|
||||
selectRow(taskName) {
|
||||
return this.dataTable.selectRow('Name', taskName);
|
||||
}
|
||||
|
||||
getRow(taskName) {
|
||||
return this.dataTable.getRow('Name', taskName);
|
||||
}
|
||||
|
||||
checkContentIsDisplayedByProcessInstanceId(taskName) {
|
||||
return this.dataTable.checkContentIsDisplayed('ProcessInstanceId', taskName);
|
||||
}
|
||||
|
||||
checkContentIsDisplayedById(taskName) {
|
||||
return this.dataTable.checkContentIsDisplayed('Id', taskName);
|
||||
}
|
||||
|
||||
checkContentIsDisplayedByName(taskName) {
|
||||
return this.dataTable.checkContentIsDisplayed('Name', taskName);
|
||||
}
|
||||
|
||||
checkContentIsNotDisplayedByName(taskName) {
|
||||
return this.dataTable.checkContentIsNotDisplayed('Name', taskName);
|
||||
}
|
||||
|
||||
checkTaskListIsLoaded() {
|
||||
Util.waitUntilElementIsVisible(this.taskList);
|
||||
return this;
|
||||
@@ -44,12 +96,16 @@ export class TaskListCloudComponent {
|
||||
return this.noTasksFound.getText();
|
||||
}
|
||||
|
||||
getAllRowsNameColumn() {
|
||||
return this.dataTable.getAllRowsColumnValues('Name');
|
||||
}
|
||||
|
||||
getAllRowsByColumn(columnName) {
|
||||
return this.dataTable.getAllRowsColumnValues(columnName);
|
||||
}
|
||||
|
||||
getIdCellValue(rowName) {
|
||||
let locator = new DataTablePage().getCellByNameAndColumn(rowName, column.id);
|
||||
let locator = new DataTableComponentPage().getCellByRowAndColumn('Name', rowName, column.id);
|
||||
Util.waitUntilElementIsVisible(locator);
|
||||
return locator.getText();
|
||||
}
|
||||
|
Reference in New Issue
Block a user