Skip to content

fix(tests): increase timeout for visibility checks in E2E tests - #807

Merged
pikann merged 2 commits into
masterfrom
fix/fix-failed-e2e-file-testings
Nov 20, 2026
Merged

pikann merged 2 commits into
masterfrom
fix/fix-failed-e2e-file-testings

Conversation

@pikann

@pikann pikann commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes the e2e failures from Actions run 44749592076. All of them are timing-sensitive on slow CI runners, not product regressions.

  • Board performance (projects/board-performance.spec.ts): the render-count checks passed, but the main-thread time budget failed (1995 ms and 2746 ms against 1800 ms). Raised OPEN_TASK_BUDGET_MS from 1800 to 4000 and LOAD_MORE_BUDGET_MS from 1200 to 3000. The render counts stay the precise check.
  • Passkey setup (auth/passkeys.spec.ts): the "Secure your account" and "Passkey added" headings timed out at the 5 s default after sign-in. They now wait up to 20 s.
  • Reconnect catch-up (realtime/live-updates-ui.spec.ts): removed expect(seen.opened).toBeGreaterThan(1), which failed on mobile-chrome because the browser can keep the socket alive through an offline blip. The test still asserts that the missed task appears after reconnecting.

Testing

Ran the three changed specs against the local e2e stack (deploy/docker-compose.e2e.yml) on chromium and mobile-chrome: 38 passed, 2 skipped (the board-performance tests are chromium-only). The full suite was not run locally, and CI is the real check for the slow-runner timing.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The new OPEN_TASK_BUDGET_MS = 4000 is still below a value this exact suite produced on master: the table-row test measured 4328 ms on retry #1 of the latest e2e-tests run, so that test can keep failing after this merges.

Approach: sound in direction — each change targets an assertion that genuinely failed on master, and loosening browser-dependent socket counts matches behavior already documented in sync-ui.spec.ts. The board budgets just need to clear the worst observed measurement.

Reviewed changes

  • Passkey visibility waits (passkeys.spec.ts) — both post-sign-in headings get a 20 s wait instead of the 5 s default, matching the observed "element not found" flake.
  • Board performance budgets (board-performance.spec.ts) — blocked-main-thread budgets raised to 4000 ms / 3000 ms; render-count assertions unchanged.
  • Offline catch-up assertion (live-updates-ui.spec.ts) — drops the socket-open count check, keeping only the "missed task appears" contract.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Comment thread apps/e2e/tests/auth/passkeys.spec.ts Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes — the delta since the prior review (4cf83f52) addresses all three threads; no new problems introduced.

  • Passkey test timeout (passkeys.spec.ts) — test.setTimeout(60_000) now precedes the policy setup, so both 20 s heading waits fit inside the test budget.
  • Board performance budget (board-performance.spec.ts) — OPEN_TASK_BUDGET_MS raised to 6000 ms, clearing the 4328 ms table-row measurement; the comment now cites both the card and table-row paths.
  • Reconnect catch-up comment (live-updates-ui.spec.ts) — the earlier comment now reads "When the socket does reconnect", consistent with the browser-dependent socket behavior the test no longer asserts.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann
pikann merged commit 47fdc20 into master Nov 20, 2026
2 checks passed
@pikann
pikann deleted the fix/fix-failed-e2e-file-testings branch November 20, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant