From 757ec775745d6d792cb39cb957041aedb02c140a Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 5 Apr 2026 14:47:40 +0200 Subject: [PATCH] Make `waitForURL` optional in `signinWithEmail` E2E tests and refactor `signInFixture` method parameters --- tests/e2e/web/fixtures/signInFixture.ts | 2 +- tests/e2e/web/specs/signIn.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/web/fixtures/signInFixture.ts b/tests/e2e/web/fixtures/signInFixture.ts index 276696bc..a55ecbdc 100644 --- a/tests/e2e/web/fixtures/signInFixture.ts +++ b/tests/e2e/web/fixtures/signInFixture.ts @@ -31,7 +31,7 @@ export const test = base.extend<{ await use(account) await deleteUser('Email/Password', account) }, - signedOutAccount: async ({app}: {app: App}, use) => { + signedOutAccount: async ({}, use) => { const account = testAccounts.faker_account() await seedUser( account.email, diff --git a/tests/e2e/web/specs/signIn.spec.ts b/tests/e2e/web/specs/signIn.spec.ts index 324b50f9..4c5b00a5 100644 --- a/tests/e2e/web/specs/signIn.spec.ts +++ b/tests/e2e/web/specs/signIn.spec.ts @@ -13,7 +13,7 @@ test.describe('when given invalid input', () => { signedOutAccount, page, }) => { - await app.signinWithEmail(signedOutAccount.email, 'ThisPassword') + await app.signinWithEmail(signedOutAccount.email, 'ThisPassword', false) await expect( page.getByText('Failed to sign in with your email and password', {exact: true}), ).toBeVisible()