mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-3558] Fixing failing test for unshare file (#3792)
* [ADF-3558] Fixing failing test for unshare file * [ADF-3558] Fix failing test for unshare file
This commit is contained in:
@@ -90,10 +90,11 @@ describe('Unshare file', () => {
|
||||
let sharedLink = await shareDialog.getShareLink();
|
||||
|
||||
shareDialog.clickShareToggle();
|
||||
shareDialog.clickCloseButton();
|
||||
|
||||
browser.get(sharedLink);
|
||||
browser.sleep(300);
|
||||
|
||||
errorPage.checkErrorPage();
|
||||
errorPage.checkBackButton();
|
||||
errorPage.checkErrorCode();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -23,6 +23,7 @@ export class ShareDialog {
|
||||
dialogTitle = element(by.id('adf-share-title'));
|
||||
shareToggle = element(by.id('adf-share-toggle'));
|
||||
shareLink = element(by.id('adf-share-link'));
|
||||
closeButton = element(by.css('button[class="mat-button mat-primary"]'));
|
||||
|
||||
checkDialogIsDisplayed() {
|
||||
return Util.waitUntilElementIsVisible(this.dialogTitle);
|
||||
@@ -43,4 +44,9 @@ export class ShareDialog {
|
||||
Util.waitUntilElementIsVisible(this.shareLink)
|
||||
return this.shareLink.getAttribute('value');
|
||||
}
|
||||
|
||||
clickCloseButton() {
|
||||
Util.waitUntilElementIsVisible(this.closeButton);
|
||||
return this.closeButton.click();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user