From 6c887475f38e5ff5fe97fb8d02a84966c559abf2 Mon Sep 17 00:00:00 2001 From: mildred Date: Thu, 7 Mar 2024 11:49:16 +0100 Subject: [PATCH] remove unnecesary await --- src/page-objects/COMM_LoginPage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/page-objects/COMM_LoginPage.ts b/src/page-objects/COMM_LoginPage.ts index 427fbc9..079b50c 100644 --- a/src/page-objects/COMM_LoginPage.ts +++ b/src/page-objects/COMM_LoginPage.ts @@ -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'); } }