amend implicit returns

This commit is contained in:
pionnegru
2019-10-16 13:11:24 +03:00
parent af67703371
commit 2c5fe7d3f4
9 changed files with 45 additions and 25 deletions

View File

@@ -100,10 +100,12 @@ export class Viewer extends Component {
return await browser.isElementPresent(this.viewerExtensionContent);
}
async getComponentIdOfView() {
async getComponentIdOfView(): Promise<string|null> {
if (await this.isCustomContentPresent()) {
return await this.viewerExtensionContent.getAttribute('data-automation-id');
}
return null;
}
async isPdfViewerContentDisplayed() {