mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[AAE-5843] - Add e2e method to check the visibility of the upload fro… (#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>
This commit is contained in:
parent
12ef9656aa
commit
df08e36d24
Binary file not shown.
@ -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';
|
||||
|
||||
@ -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';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user