Skip to content

test: replace fixed UI waits with observable readiness - #20369

Merged
nwparker merged 1 commit into
mainfrom
nwparker/ci-readiness-waits
Sep 12, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/ci-readiness-waits

Conversation

@nwparker

@nwparker nwparker commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20 $\color{#cf222e}{\Huge{\mathbf{−}}}$​14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6
Prod 0 0 0 0

ELI5

Let selected UI tests continue as soon as the UI is ready instead of always sleeping.

What Changed

  • Retry the quick-open hover against tooltip visibility to handle streamed rows remounting.
  • Wait for reaction controls and focus explicitly, disabling screenshot animations for stable captures.
  • Remove the unconditional 250 ms delay inside the existing bounded checks-tab poll.

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

  • Not applicable; no upstream skill-installer content is copied.

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

  • Scope is focused and the change is explained.
  • Visual proof is N/A with a reason.
  • Cross-platform and SSH/remote impact considered.
  • Local validation and remaining CI checks are documented above.

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.

Version End-to-end elapsed seconds Median
Base 33.85, 32.45, 32.52 32.52s
PR 30.78, 31.39, 32.04 31.39s

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-*.json in 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.

@coderabbitai

coderabbitai Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: ba0f6bb6-8e0c-4743-8f07-1544822ac841

📥 Commits

Reviewing files that changed from the base of the PR and between 923858e and 29d6f4c.

📒 Files selected for processing (3)
  • tests/e2e/helpers/source-control-ai-generation.ts
  • tests/e2e/pr-comments-sidebar-cards.spec.ts
  • tests/e2e/quick-open-file-paths.spec.ts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 7b53b5a into main Sep 12, 2026
5 checks passed

@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

  • openChecks drops a fixed wait — removes the waitForTimeout(250) inside the pre-existing bounded expect.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 toBeVisible on the rocket-reaction button and toBeFocused on selectedRocket, and both picker screenshots now pass animations: 'disabled' for stable captures.
  • Quick-open tooltip hover becomes retryable — the fixed double-hover + waitForTimeout(250) is replaced by an expect(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.

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

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