[ADF-3335] Added automation tests for task filter sorting (#3724)

* [ADF-3335] Added automation tests for task filter sorting

* [ADF-3335] Removed excluded describe
This commit is contained in:
davidcanonieto
2018-09-14 17:53:39 +01:00
committed by Eugenio Romano
parent a960c0d2a8
commit 0569065684
6 changed files with 550 additions and 39 deletions

View File

@@ -44,6 +44,7 @@ var TaskDetailsPage = function () {
var taskDetailsSection = element(by.css("div[data-automation-id='adf-tasks-details']"));
var taskDetailsEmptySection = element(by.css("div[data-automation-id='adf-tasks-details--empty']"));
var completeTask = element(by.css("button[id='adf-no-form-complete-button']"));
var taskDetailsTitle = element(by.css('h2[class="activiti-task-details__header"] span'));
var auditLogButton = element(by.css("button[adf-task-audit]"));
var noPeopleInvolved = element(by.id('no-people-label'));
var cancelInvolvePeopleButton = element(by.id('close-people-search'));
@@ -58,6 +59,11 @@ var TaskDetailsPage = function () {
var removeAttachForm = element(by.id("adf-no-form-remove-button"));
var attachFormName = element(by.css("span[class='adf-form-title ng-star-inserted']"));
this.getTaskDetailsTitle = function () {
Util.waitUntilElementIsVisible(taskDetailsTitle);
return taskDetailsTitle.getText();
};
this.checkSelectedForm = function (formName) {
Util.waitUntilElementIsVisible(attachFormName);
expect(formName).toEqual(attachFormName.getText());