remove unnecesary await

This commit is contained in:
mildred 2024-03-07 11:49:16 +01:00
parent 836c66ee9a
commit 6c887475f3

View file

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