[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:
Marouan Bentaleb
2019-03-08 10:49:23 +00:00
committed by Eugenio Romano
parent 88ef01011e
commit 27c6e18a10
93 changed files with 3410 additions and 3841 deletions

View File

@@ -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();
}
}