Skip to content

Commit

Permalink
[AAE-5843] - Add e2e method to check the visibility of the upload fro… (
Browse files Browse the repository at this point in the history
#7262)

* [AAE-5843] - Add e2e method to check the visibility of the upload from local tab

* Remove expectation from page method

Co-authored-by: Ardit Domi <arditdomi@apl-c02g64vpmd6t.home>
Co-authored-by: Ardit Domi <arditdomi@apl-c02g64vpmd6t.broadband>
  • Loading branch information
3 people committed Sep 28, 2021
1 parent 12ef965 commit df08e36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file modified e2e/resources/activiti7/simpleapp.zip
Binary file not shown.
Expand Up @@ -42,6 +42,7 @@ export class ContentNodeSelectorDialogPage {
tabPage: TabPage = new TabPage();
uploadButtonComponent = new UploadButtonPage();

uploadFromLocalTab = element.all(by.css('*[role="tab"]')).get(1);
uploadFromLocalTabName = 'Upload from your device';
repositoryTabName = 'Repository';

Expand Down Expand Up @@ -189,4 +190,10 @@ export class ContentNodeSelectorDialogPage {
contentListPage(): DocumentListPage {
return this.contentList;
}

async isUploadFromLocalTabEnabled(): Promise<boolean> {
await BrowserVisibility.waitUntilElementIsPresent(this.uploadFromLocalTab);
const disabled = await BrowserActions.getAttribute(this.uploadFromLocalTab, 'aria-disabled');
return disabled === 'false';
}
}

0 comments on commit df08e36

Please sign in to comment.