Skip to content

Commit

Permalink
[AAE-7818] e2e - Task involved users can access process instance deta…
Browse files Browse the repository at this point in the history
…ils (#7554)

* [AAE-7818] e2e - Task involved users can access process instance details

* Trigger travis
  • Loading branch information
tomgny committed Mar 28, 2022
1 parent 5740273 commit cad4c41
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Expand Up @@ -71,7 +71,13 @@ export class CardTextItemPage {
await BrowserVisibility.waitUntilElementIsVisible(this.rootElement.$(this.readOnlyField));
}

async checkElementIsClickable(): Promise<void> {
const clickableElement = this.rootElement.$(this.clickableElement);
await BrowserVisibility.waitUntilElementIsVisible(clickableElement);
}

async clickField(): Promise<void> {
await BrowserActions.click(this.rootElement.$(`button[data-automation-id*='clickable-icon']`));
const clickableElement = this.rootElement.$(this.clickableElement);
await BrowserActions.click(clickableElement);
}
}
Expand Up @@ -35,6 +35,7 @@ export class TaskHeaderCloudPage {
idCardTextItem = new CardTextItemPage('id');
descriptionCardTextItem = new CardTextItemPage('description');
taskPropertyList = $('adf-cloud-task-header adf-card-view .adf-property-list');
processInstanceIdCardTextItem = new CardTextItemPage('processInstanceId');

async getAssignee(): Promise<string> {
return this.assigneeCardTextItem.getFieldValue();
Expand Down Expand Up @@ -76,6 +77,10 @@ export class TaskHeaderCloudPage {
return this.idCardTextItem.getFieldValue();
}

async getProcessInstanceId(): Promise<string> {
return this.processInstanceIdCardTextItem.getFieldValue();
}

async getDescription(): Promise<string> {
return this.descriptionCardTextItem.getFieldValue();
}
Expand Down

0 comments on commit cad4c41

Please sign in to comment.