From 92e2dbc0f22d1de99a4e2dcec063b28593ea5979 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 5 Apr 2026 14:47:20 +0200 Subject: [PATCH] Make `waitForURL` optional in `signinWithEmail` method in `app.ts` --- tests/e2e/web/pages/app.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/e2e/web/pages/app.ts b/tests/e2e/web/pages/app.ts index 5f042ac7..a5f25a1b 100644 --- a/tests/e2e/web/pages/app.ts +++ b/tests/e2e/web/pages/app.ts @@ -59,7 +59,11 @@ export class App { await this.auth.clickSignUpWithEmailButton() } - async signinWithEmail(accountOrEmail: UserAccountInformation | string, password?: string) { + async signinWithEmail( + accountOrEmail: UserAccountInformation | string, + password?: string, + wait: boolean = true, + ) { const email = typeof accountOrEmail === 'string' ? accountOrEmail : accountOrEmail.email const resolvedPassword = typeof accountOrEmail === 'string' ? password : accountOrEmail.password @@ -72,6 +76,8 @@ export class App { await this.auth.fillEmailField(email) await this.auth.fillPasswordField(resolvedPassword) await this.auth.clickSignInWithEmailButton() - await this.page.waitForURL('/') + if (wait) { + await this.page.waitForURL('/') + } } }