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

@@ -92,10 +92,12 @@ export class InfoDrawer extends Component {
return await this.getTabByTitle(title).isPresent();
}
async isTabDisplayed(title: string) {
async isTabDisplayed(title: string): Promise<boolean> {
if (await browser.isElementPresent(this.getTabByTitle(title))) {
return await this.getTabByTitle(title).isDisplayed();
}
return false;
}
async getTabTitle(index: number) {