From 7224b9a0d50720220f78fc553f5899dbdb6010b6 Mon Sep 17 00:00:00 2001 From: mildred Date: Fri, 8 Mar 2024 17:26:55 +0100 Subject: [PATCH] fix throw error --- src/page-objects/COMM_LoginPage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/page-objects/COMM_LoginPage.ts b/src/page-objects/COMM_LoginPage.ts index 3723b5b..d386929 100644 --- a/src/page-objects/COMM_LoginPage.ts +++ b/src/page-objects/COMM_LoginPage.ts @@ -28,7 +28,7 @@ export class LogInPage { await this.signInButtonLocator.click(); } catch (error) { console.error('Failed to login:', error); - throw new Error('Failed to login'); + throw error; } }