mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user