mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[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:
@@ -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
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user