mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
Remove dead code from the e2e (#3542)
* cleanup dead code * cleanup dead code * cleanup dead code * cleanup dead code * cleanup dead code * cleanup dead code
This commit is contained in:
@@ -35,7 +35,6 @@ export class Viewer extends Component {
|
||||
closeButton = this.byCss('.adf-viewer-close-button');
|
||||
fileTitle = this.byCss('.adf-viewer__file-title');
|
||||
viewerExtensionContent = this.byCss('adf-preview-extension');
|
||||
pdfViewerContentPages = this.allByCss('.adf-pdf-viewer__content .page');
|
||||
txtViewerContent = this.byCss('.adf-txt-viewer-content');
|
||||
|
||||
toolbar = new Toolbar('adf-viewer');
|
||||
@@ -87,10 +86,6 @@ export class Viewer extends Component {
|
||||
return browser.isElementPresent(this.fileTitle);
|
||||
}
|
||||
|
||||
async getCloseButtonTooltip(): Promise<string> {
|
||||
return this.toolbar.getButtonTooltip(this.closeButton);
|
||||
}
|
||||
|
||||
async getFileTitle(): Promise<string> {
|
||||
return this.fileTitle.getText();
|
||||
}
|
||||
@@ -107,11 +102,6 @@ export class Viewer extends Component {
|
||||
return '';
|
||||
}
|
||||
|
||||
async isPdfViewerContentDisplayed(): Promise<boolean> {
|
||||
const count = await this.pdfViewerContentPages.count();
|
||||
return count > 0;
|
||||
}
|
||||
|
||||
async clickCloseButton(): Promise<void> {
|
||||
const closeButton: ElementFinder = element(by.css('button[data-automation-id="adf-toolbar-back"]'));
|
||||
await BrowserActions.click(closeButton);
|
||||
|
Reference in New Issue
Block a user