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
@@ -17,7 +17,7 @@
|
||||
|
||||
import { Util } from '../../../util/util';
|
||||
import { element, by } from 'protractor';
|
||||
import { ContentListPage } from '../dialog/contentListPage';
|
||||
import { DataTableComponentPage } from '../dataTableComponentPage';
|
||||
import { NavigationBarPage } from '../navigationBarPage';
|
||||
|
||||
let source = {
|
||||
@@ -38,7 +38,7 @@ let column = {
|
||||
|
||||
export class CustomSources {
|
||||
|
||||
contentList = new ContentListPage();
|
||||
dataTable = new DataTableComponentPage();
|
||||
navigationBarPage = new NavigationBarPage();
|
||||
|
||||
toolbar = element(by.css('app-custom-sources .adf-toolbar-title'));
|
||||
@@ -67,13 +67,13 @@ export class CustomSources {
|
||||
}
|
||||
|
||||
checkRowIsDisplayed(rowName) {
|
||||
let row = this.contentList.getRowsName(rowName);
|
||||
Util.waitUntilElementIsVisible(row);
|
||||
return this.dataTable.checkContentIsDisplayed('Name', rowName);
|
||||
}
|
||||
|
||||
getStatusCell(rowName) {
|
||||
Util.waitUntilElementIsVisible(this.contentList.getCellByNameAndColumn(rowName, column.status));
|
||||
return this.contentList.getCellByNameAndColumn(rowName, column.status).getText();
|
||||
let cell = this.dataTable.getCellByRowAndColumn('Name', rowName, column.status);
|
||||
Util.waitUntilElementIsVisible(cell);
|
||||
return cell.getText();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user