[ADF-3370] Create automated tests for process filters - sorting (#3605)

* [ADF-3337] Creation of automated test for new filters

* [ADF-3370] Create automated tests for process filters - sorting

* Removing the fdescibe

* Removing spaces

* Removing too many characters from a single line

* Removing fdescribe

* changes on the loginPage.js file

* Moving tests to the right folder

* Adding back the chnages on appNavigationBarPage
This commit is contained in:
jdosti
2018-07-27 12:24:39 +01:00
committed by Eugenio Romano
parent 91eb4f8520
commit 803838c276
5 changed files with 552 additions and 9 deletions

View File

@@ -50,7 +50,6 @@ var LoginPage = function () {
var cardBackground = element(by.css("mat-card[class*='adf-login-card']"));
var adfSettingsPage = new AdfSettingsPage();
/**
* Provides the longer wait required
* @property waitForElements

View File

@@ -16,7 +16,6 @@
*/
var Util = require('../../../util/util');
var TasksPage = require('./tasksPage');
var AppNavigationBarPage = function () {
@@ -27,22 +26,18 @@ var AppNavigationBarPage = function () {
this.clickTasksButton = function () {
Util.waitUntilElementIsVisible(tasksButton);
tasksButton.click();
return new TasksPage();
return tasksButton.click();
};
this.clickProcessButton = function () {
Util.waitUntilElementIsVisible(processButton);
processButton.click();
return processButton.click();
};
this.clickReportsButton = function () {
Util.waitUntilElementIsVisible(reportsButton);
reportsButton.click();
Util.waitUntilElementIsVisible(reportsButtonSelected);
return Util.waitUntilElementIsVisible(reportsButtonSelected);
};
};
module.exports = AppNavigationBarPage;

View File

@@ -111,6 +111,15 @@ var ProcessFiltersPage = function () {
return contentList.getAllRowsColumnValues(nameColumn);
};
this.checkFilterIsDisplayed = function (name) {
var filterName = element(by.css("span[data-automation-id='" + name + "_filter']"));
return Util.waitUntilElementIsVisible(filterName);
};
this.checkFilterIsNotDisplayed = function (name) {
var filterName = element(by.css("span[data-automation-id='" + name + "_filter']"));
return Util.waitUntilElementIsNotVisible(filterName);
};
};
module.exports = ProcessFiltersPage;