Repository navigation
test: replace fixed UI waits with observable readiness - #20369
Conversation
|
Warning Review limit reachedNext included review available in 13 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
openChecksdrops a fixed wait — removes thewaitForTimeout(250)inside the pre-existing boundedexpect.poll; the poll's own retry intervals already space out the click attempts, so no synchronization is lost.- Reaction-picker test uses observable readiness — two 300 ms waits become
toBeVisibleon the rocket-reaction button andtoBeFocusedonselectedRocket, and both picker screenshots now passanimations: 'disabled'for stable captures. - Quick-open tooltip hover becomes retryable — the fixed double-hover +
waitForTimeout(250)is replaced by anexpect(async () => …).toPass({ timeout: 10_000, intervals: [100, 250, 500] })loop that re-hovers and asserts tooltip visibility, with the existing final assertion retained.
Each added assertion pins a real observable (visible button, focused element, visible tooltip), so the suite still fails when the behavior regresses. The removed waits were either inside a retry loop or superseded by an explicit condition, and no outer timeout budget shrank. Fine to merge as-is.
openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

ELI5
Let selected UI tests continue as soon as the UI is ready instead of always sleeping.
What Changed
Why
These fixed waits add latency without proving readiness. Observable conditions handle both fast and slow rendering while preserving intentional reconnect, backoff, and performance dwell waits.
Linked Issue
Part of #20366. This PR is independent and targets
main.Visual Proof
N/A — this changes CI or test synchronization only; no application UI or interaction behavior changes.
Testing
Fresh Electron E2E and CLI builds passed.
All seven targeted Electron tests passed in 33 seconds on macOS with
ORCA_BACKGROUND_LAUNCH=1, hidden renderers, and no native window activation. The reaction picker screenshot was inspected.Lint and formatting passed.
The broader E2E typecheck reports 217 diagnostics; a comparison against the pre-change sources produced exactly the same diagnostics.
Automated checks run locally; scope and limitations listed above.
Automated tests added/updated, or existing targeted E2E tests exercised.
Review
Self-reviewed for scope, failure handling, cross-platform effects, and compatibility. No application execution-host, SSH, folder-workspace, or wire behavior changes.
Agent skill upstream boundary
Notes
Application behavior is unchanged. Linux/Windows coverage and hosted timing comparisons remain with CI; the shared checks-tab helper retains its existing bounded poll.
Checklist
Measured impact before merge
Same built app, same seven tests, one worker, hidden Electron on macOS, alternating order base/head/head/base/base/head. All 42 test executions passed, with no skips or retries.
Measured median improvement: 1.13 seconds / 3.5% for these seven tests. This is a local measurement, not a claim about full CI elapsed time. Every candidate run was faster than every baseline run. JSON reports are retained in
/tmp/orca-ci-impact/readiness-*.jsonin the measurement workspace.Merge validation: no required checks are configured/reported for this PR, no review blockers were present, and the PR was mergeable at
29d6f4c868263377068dea2e92f47badbfaacfc4. Hosted checks were still queued; local validation above is the completed evidence.