mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[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:
parent
3ecf6a3663
commit
94e02c0552
@ -73,7 +73,6 @@ export class TasksService {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
Logger.error('Complete Task - Service error, Response: ', JSON.parse(JSON.stringify(error)).response.text);
|
Logger.error('Complete Task - Service error, Response: ', JSON.parse(JSON.stringify(error)).response.text);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async claimTask(taskId: string, appName: string): Promise<any> {
|
async claimTask(taskId: string, appName: string): Promise<any> {
|
||||||
|
@ -45,7 +45,6 @@ export class CardTextItemPage {
|
|||||||
async clickOnToggleTextField(): Promise<void> {
|
async clickOnToggleTextField(): Promise<void> {
|
||||||
const toggleText: ElementFinder = this.rootElement.element(this.toggle);
|
const toggleText: ElementFinder = this.rootElement.element(this.toggle);
|
||||||
await BrowserActions.click(toggleText);
|
await BrowserActions.click(toggleText);
|
||||||
await BrowserVisibility.waitUntilElementIsVisible(this.rootElement.element(this.textField));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async enterTextField(text: string): Promise<void> {
|
async enterTextField(text: string): Promise<void> {
|
||||||
|
@ -168,6 +168,10 @@ export class DataTableComponentPage {
|
|||||||
return this.rootElement.all(this.rows).count();
|
return this.rootElement.all(this.rows).count();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async waitForFirstRow(): Promise<void> {
|
||||||
|
await BrowserVisibility.waitUntilElementIsVisible(this.rootElement.all(this.rows).first());
|
||||||
|
}
|
||||||
|
|
||||||
async getAllRowsColumnValues(column: string) {
|
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");
|
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());
|
await BrowserVisibility.waitUntilElementIsPresent(element.all(columnLocator).first());
|
||||||
|
@ -48,6 +48,7 @@ export class TaskListCloudComponentPage {
|
|||||||
getStatusByName(taskName: string): Promise<string> {
|
getStatusByName(taskName: string): Promise<string> {
|
||||||
return this.dataTable.getColumnValueForRow('Name', taskName, 'Status');
|
return this.dataTable.getColumnValueForRow('Name', taskName, 'Status');
|
||||||
}
|
}
|
||||||
|
|
||||||
clickCheckbox(taskName: string): Promise<void> {
|
clickCheckbox(taskName: string): Promise<void> {
|
||||||
return this.dataTable.clickCheckbox(column.name, taskName);
|
return this.dataTable.clickCheckbox(column.name, taskName);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user