[AAE-1361]Add complete task of a process method (#5359)

* Add complete task of a process method

* Removed completeTaskOfAProcess method. We will add this along with a proper refactoring

* Remove unnecessary check
This commit is contained in:
cristinaj 2020-01-08 18:46:16 +02:00 committed by Maurizio Vitale
parent 3ecf6a3663
commit 94e02c0552
4 changed files with 5 additions and 2 deletions

View File

@ -73,7 +73,6 @@ export class TasksService {
} catch (error) {
Logger.error('Complete Task - Service error, Response: ', JSON.parse(JSON.stringify(error)).response.text);
}
}
async claimTask(taskId: string, appName: string): Promise<any> {

View File

@ -45,7 +45,6 @@ export class CardTextItemPage {
async clickOnToggleTextField(): Promise<void> {
const toggleText: ElementFinder = this.rootElement.element(this.toggle);
await BrowserActions.click(toggleText);
await BrowserVisibility.waitUntilElementIsVisible(this.rootElement.element(this.textField));
}
async enterTextField(text: string): Promise<void> {

View File

@ -168,6 +168,10 @@ export class DataTableComponentPage {
return this.rootElement.all(this.rows).count();
}
async waitForFirstRow(): Promise<void> {
await BrowserVisibility.waitUntilElementIsVisible(this.rootElement.all(this.rows).first());
}
async getAllRowsColumnValues(column: string) {
const columnLocator = by.css("adf-datatable div[class*='adf-datatable-body'] adf-datatable-row[class*='adf-datatable-row'] div[title='" + column + "'] span");
await BrowserVisibility.waitUntilElementIsPresent(element.all(columnLocator).first());

View File

@ -48,6 +48,7 @@ export class TaskListCloudComponentPage {
getStatusByName(taskName: string): Promise<string> {
return this.dataTable.getColumnValueForRow('Name', taskName, 'Status');
}
clickCheckbox(taskName: string): Promise<void> {
return this.dataTable.clickCheckbox(column.name, taskName);
}