mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
amend implicit returns
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user