mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-06 15:53:57 -04:00
Make waitForURL optional in signinWithEmail E2E tests and refactor signInFixture method parameters
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user