forked from baron/baron-sso
test: increase playwright poll timeout for password login failure and reset tests
This commit is contained in:
@@ -224,10 +224,12 @@ test.describe('UserFront WASM password login and reset', () => {
|
|||||||
|
|
||||||
await expect(page).toHaveURL(/\/ko\/signin$/);
|
await expect(page).toHaveURL(/\/ko\/signin$/);
|
||||||
await expect
|
await expect
|
||||||
.poll(() =>
|
.poll(
|
||||||
capture.clientLogs.some((message) =>
|
() =>
|
||||||
message.includes('password_or_email_mismatch'),
|
capture.clientLogs.some((message) =>
|
||||||
),
|
message.includes('password_or_email_mismatch'),
|
||||||
|
),
|
||||||
|
{ timeout: 10000 },
|
||||||
)
|
)
|
||||||
.toBe(true);
|
.toBe(true);
|
||||||
});
|
});
|
||||||
@@ -257,7 +259,10 @@ test.describe('UserFront WASM password login and reset', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await expect
|
await expect
|
||||||
.poll(() => capture.resetBody?.newPassword as string | undefined)
|
.poll(
|
||||||
|
() => capture.resetBody?.newPassword as string | undefined,
|
||||||
|
{ timeout: 10000 },
|
||||||
|
)
|
||||||
.toBe('ValidPass1!A');
|
.toBe('ValidPass1!A');
|
||||||
await expect(page).toHaveURL(/\/ko\/signin(?:\?.*)?$/, { timeout: 10_000 });
|
await expect(page).toHaveURL(/\/ko\/signin(?:\?.*)?$/, { timeout: 10_000 });
|
||||||
expect(capture.resetToken).toBe('reset-token-e2e');
|
expect(capture.resetToken).toBe('reset-token-e2e');
|
||||||
|
|||||||
Reference in New Issue
Block a user