Drop workers=1 — hydration helper is sufficient
The hydration helper alone fixes the flake; restoring CPU-count workers locally cuts the suite from 55s to 22s. Cover the two remaining /auth/login navigations the prior commit missed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b7ed54ba72
commit
e6dc809e08
2 changed files with 3 additions and 5 deletions
|
|
@ -67,6 +67,7 @@ test.describe("Passkey Authentication", () => {
|
|||
|
||||
// Sign in with passkey
|
||||
await page.goto("/auth/login");
|
||||
await waitForHydration(page);
|
||||
await page.getByRole("button", { name: /Sign in with Passkey/ }).click();
|
||||
await expect(page).toHaveURL("/", { timeout: 10000 });
|
||||
await expect(page.getByRole("navigation").getByRole("button", { name: username })).toBeVisible({ timeout: 5000 });
|
||||
|
|
@ -79,6 +80,7 @@ test.describe("Passkey Authentication", () => {
|
|||
const authenticatorId = await setupVirtualAuthenticator(cdp);
|
||||
|
||||
await page.goto("/auth/login");
|
||||
await waitForHydration(page);
|
||||
await page.getByRole("button", { name: /Sign in with Passkey/ }).click();
|
||||
await expect(page.getByText(/No passkey found/i)).toBeVisible({ timeout: 10000 });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue