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:
Denys Vuika
2023-11-28 16:00:00 +00:00
committed by GitHub
parent 53931b0d27
commit 8aaca5f693
29 changed files with 9 additions and 1016 deletions

View File

@@ -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);