orca/tests/e2e/helpers
Neil 0ebfc989cb
Fix flaky terminal-rendering-golden repo-load race on macOS CI (#7330)
The release-blocking `terminal rendering golden mac` job was failing ~40%
of Cut Release runs with `Expected e2e repo to be loaded`, leaving the RC
stuck as a draft (publish-release depends on this job).

Root cause: the sharedPage fixture did a single-shot fetchRepos() + find()
+ throw. window.api.repos.add() fires a repos:changed echo that triggers a
concurrent fetchRepos() in the renderer; the store's reposFetchGeneration
guard then drops the fixture's own awaited fetch result, leaving `repos`
briefly stale, so find() returns undefined and throws. The repo lands a few
ms later (the failure screenshot's sidebar actually shows it).

Wrap the repo load in expect.poll (matching the seeded-worktree poll right
below it) so it retries fetchRepos until the repo lands, then runs the
idempotent updateRepo. Also harden the single-shot hasWebgl/cursorHidden
diagnostics reads in the golden spec: WebGL reattaches asynchronously after
a worktree switch, so poll those eventually-consistent fields until they
settle before the golden asserts. Regression detection is preserved: a real
WebGL/cursor regression times out the poll and still fails the test; the
geometry/wrap/overpaint golden checks stay single-shot.
2026-07-04 00:25:21 -07:00
..
agent-hook-endpoint.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
computer-cli-driver.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
computer-driver.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
dead-terminal.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
docker-ssh-relay-target.ts test: add docker ssh relay perf guard (#4778) 2026-06-07 04:15:26 -07:00
e2e-completed-onboarding-profile.ts Support project reordering with groups and add manual-default notice (#5237) 2026-06-11 20:39:39 -07:00
electron-launch-args.ts fix: stabilize release e2e failures 2026-05-26 13:25:54 -07:00
electron-process-shutdown.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
file-explorer.ts
markdown-ordered-list-exit.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
orca-app.ts Fix flaky terminal-rendering-golden repo-load race on macOS CI (#7330) 2026-07-04 00:25:21 -07:00
orca-restart.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
pr-comments-sidebar-fixture.ts Make PR comments sidebar easier to triage and read (#5996) 2026-06-21 23:49:43 -07:00
runtime-types.ts
shortcuts.ts
source-control-ai-generation.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
source-control-ai-generators.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
store.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
terminal-pty-injection.ts Stabilize main for v1.4.51 release (#4841) 2026-06-07 17:10:45 -07:00
terminal-pty-write-spy.ts Fix paste ownership, input bounds, and IPC validation 2026-06-19 17:14:55 -07:00
terminal-title-log.ts
terminal.ts fix: replace per-5s full-buffer terminal checkpoints with an incremental log (#5292) 2026-06-12 16:31:24 -07:00