[ADF-3739] Fix task_filters_cloud.e2e.ts tests (#4030)

* Fix task_filters_cloud.e2e.ts  tests

* fix locators

* fix protractor import

* update tests and delete the duplicated test

* update selectors

* move methods and update methods for custom filters

* remove comments

* change user for apps_section_cloud.e2e.ts

* remove user

* delete old dataTablePage.js file

* update selectors

* remove unused methods

* add variable for user and password
This commit is contained in:
rgherghelas
2018-12-20 15:44:39 +02:00
committed by Eugenio Romano
parent 6a6e9f3b39
commit ef8e15ff60
4 changed files with 17 additions and 25 deletions

View File

@@ -216,19 +216,19 @@ export class DataTablePage {
}
checkContentIsDisplayed(content) {
let row = by.cssContainingText(`span`, content);
let row = by.cssContainingText(`[data-automation-id*="${content}"]`, content);
Util.waitUntilElementIsVisible(this.tableBody.all(row).first());
return this;
}
checkContentIsNotDisplayed(content) {
let row = by.cssContainingText(`span`, content);
let row = by.cssContainingText(`[data-automation-id*="${content}"]`, content);
Util.waitUntilElementIsNotOnPage(this.tableBody.all(row).first());
return this;
}
selectRowByContentName(content) {
let row = by.cssContainingText(`span`, content);
let row = by.cssContainingText(`[data-automation-id*="${content}"]`, content);
Util.waitUntilElementIsVisible(this.tableBody.element(row));
this.tableBody.element(row).click();
return this;