remove unnecesary await

This commit is contained in:
mildred 2024-03-07 11:49:16 +01:00
parent 836c66ee9a
commit 6c887475f3
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,8 @@ export class LogInPage {
await this.passwordInputLocator.fill(password); await this.passwordInputLocator.fill(password);
await this.signInButtonLocator.click(); await this.signInButtonLocator.click();
} catch (error) { } catch (error) {
console.error('Login failed:', error); console.error('Failed to login:', error);
throw new Error('Login failed'); throw new Error('Failed to login');
} }
} }