Make waitForURL optional in signinWithEmail E2E tests and refactor signInFixture method parameters

This commit is contained in:
MartinBraquet
2026-04-05 14:47:40 +02:00
parent 92e2dbc0f2
commit 757ec77574
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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()