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 });
|
||||
|
||||
|
|
|
|||
|
|
@ -5,11 +5,7 @@ export default defineConfig({
|
|||
outputDir: "./e2e/results",
|
||||
fullyParallel: true,
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
// Locally the journal/planner run under Vite dev — many parallel workers
|
||||
// overwhelm cold-compile of /api/* routes and cause flaky timeouts on
|
||||
// first hits. CI runs production builds and is unaffected. Keep at 1 in
|
||||
// both environments for parity.
|
||||
workers: 1,
|
||||
workers: process.env.CI ? 1 : undefined,
|
||||
reporter: process.env.CI
|
||||
? [["github"], ["html", { open: "never" }], ["json", { outputFile: "playwright-results.json" }]]
|
||||
: "list",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue