mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +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';
|
||||
|
||||
export class ProcessListCloudComponent {
|
||||
@@ -24,12 +24,28 @@ export class ProcessListCloudComponent {
|
||||
processList = element(by.css('adf-cloud-process-list'));
|
||||
noProcessFound = element.all(by.css("p[class='adf-empty-content__title']")).first();
|
||||
|
||||
dataTable = new DataTablePage(this.processList);
|
||||
dataTable = new DataTableComponentPage(this.processList);
|
||||
|
||||
getDataTable() {
|
||||
return this.dataTable;
|
||||
}
|
||||
|
||||
checkContentIsDisplayedByName(processName) {
|
||||
return this.dataTable.checkContentIsDisplayed('Name', processName);
|
||||
}
|
||||
|
||||
checkContentIsDisplayedById(processId) {
|
||||
return this.dataTable.checkContentIsDisplayed('Id', processId);
|
||||
}
|
||||
|
||||
checkContentIsNotDisplayedById(processId) {
|
||||
return this.dataTable.checkContentIsNotDisplayed('Id', processId);
|
||||
}
|
||||
|
||||
getAllRowsNameColumn() {
|
||||
return this.dataTable.getAllRowsColumnValues('Name');
|
||||
}
|
||||
|
||||
checkProcessListIsLoaded() {
|
||||
Util.waitUntilElementIsVisible(this.processList);
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user