- remove some awaits

- add try catch
- small refactoring
This commit is contained in:
Adina Parpalita
2019-10-17 17:31:29 +03:00
parent 9fd47d3186
commit 227e05e3f9
39 changed files with 1243 additions and 905 deletions

View File

@@ -73,7 +73,7 @@ export class LoginComponent extends Component {
}
async clickPasswordVisibility() {
return await this.passwordVisibility.click();
await this.passwordVisibility.click();
}
async getPasswordVisibility(): Promise<boolean> {
@@ -105,15 +105,15 @@ export class LoginComponent extends Component {
}
async isUsernameEnabled() {
return await this.usernameInput.isEnabled();
return this.usernameInput.isEnabled();
}
async isPasswordEnabled() {
return await this.passwordInput.isEnabled();
return this.passwordInput.isEnabled();
}
async isSubmitEnabled() {
return await this.submitButton.isEnabled();
return this.submitButton.isEnabled();
}
async isPasswordHidden() {