Repository navigation
fix(tests): increase timeout for visibility checks in E2E tests - #807
Conversation
There was a problem hiding this comment.
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.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
…ments in E2E tests
There was a problem hiding this comment.
✅ 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_MSraised 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.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

Summary
Fixes the e2e failures from Actions run 44749592076. All of them are timing-sensitive on slow CI runners, not product regressions.
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). RaisedOPEN_TASK_BUDGET_MSfrom 1800 to 4000 andLOAD_MORE_BUDGET_MSfrom 1200 to 3000. The render counts stay the precise check.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.realtime/live-updates-ui.spec.ts): removedexpect(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.