[ADF-3025] Create automated test for attachment list for tasks (#3590)

* [ADF-3025] Create automated test for attachment list for tasks

* Remove the f from describe
This commit is contained in:
jdosti
2018-07-16 13:36:32 +01:00
committed by Eugenio Romano
parent 82212ed170
commit 192cca63aa
2 changed files with 184 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ var TasksPage = function () {
var checklistContainer = by.css("div[class*='checklist-menu']");
var taskTitle = "h2[class='activiti-task-details__header'] span";
var rows = by.css("div[class*='adf-datatable-body'] div[class*='adf-datatable-row'] div[class*='adf-data-table-cell']");
var completeButtonNoForm = element(by.id("adf-no-form-complete-button"));
this.createNewTask = function () {
@@ -104,10 +105,15 @@ var TasksPage = function () {
return this;
};
this.getAllDisplayedRows= function(){
this.getAllDisplayedRows = function(){
return element.all(rows).count();
};
this.completeTaskNoForm = function () {
Util.waitUntilElementIsClickable(completeButtonNoForm);
completeButtonNoForm.click();
};
};
module.exports = TasksPage;