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

@@ -76,7 +76,7 @@ export class LoginComponent extends Component {
return await this.passwordVisibility.click();
}
async getPasswordVisibility() {
async getPasswordVisibility(): Promise<boolean> {
const text = await this.passwordVisibility.getText();
if (text.endsWith('visibility_off')) {
return false;
@@ -86,9 +86,11 @@ export class LoginComponent extends Component {
return true;
}
}
return false;
}
async isPasswordDisplayed() {
async isPasswordDisplayed(): Promise<boolean> {
const type = await this.passwordInput.getAttribute('type');
if (type === 'text') {
return true;
@@ -98,6 +100,8 @@ export class LoginComponent extends Component {
return false;
}
}
return false;
}
async isUsernameEnabled() {