mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +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:
Binary file not shown.
@@ -42,6 +42,7 @@ export class ContentNodeSelectorDialogPage {
|
|||||||
tabPage: TabPage = new TabPage();
|
tabPage: TabPage = new TabPage();
|
||||||
uploadButtonComponent = new UploadButtonPage();
|
uploadButtonComponent = new UploadButtonPage();
|
||||||
|
|
||||||
|
uploadFromLocalTab = element.all(by.css('*[role="tab"]')).get(1);
|
||||||
uploadFromLocalTabName = 'Upload from your device';
|
uploadFromLocalTabName = 'Upload from your device';
|
||||||
repositoryTabName = 'Repository';
|
repositoryTabName = 'Repository';
|
||||||
|
|
||||||
@@ -189,4 +190,10 @@ export class ContentNodeSelectorDialogPage {
|
|||||||
contentListPage(): DocumentListPage {
|
contentListPage(): DocumentListPage {
|
||||||
return this.contentList;
|
return this.contentList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async isUploadFromLocalTabEnabled(): Promise<boolean> {
|
||||||
|
await BrowserVisibility.waitUntilElementIsPresent(this.uploadFromLocalTab);
|
||||||
|
const disabled = await BrowserActions.getAttribute(this.uploadFromLocalTab, 'aria-disabled');
|
||||||
|
return disabled === 'false';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user