Repository navigation
test(e2e): give wheel probes a running TUI fixture - #23691
Conversation
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe wheel-report tests now use Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The wheel-report tests now exercise activation through the real TUI fixture rather than preconditioning reporting in the probes. No actionable merge-blocking risk is evident. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
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
- Shared
startTuiFixturehelper — Extracts the launch-and-wait logic into one helper that runsvisible-tui-scroll-fixture.cjsand pollsreadVisibleTuiOffsetto0before returning. - Dropped direct mouse-mode injection — Removes
pane.terminal.write('\x1b[?1003h\x1b[?1006h')plus therequestAnimationFramesettle from both header probe helpers, letting the running fixture own mouse mode. - Wired all three tests through the helper — The two headless tests (notched-wheel, sensitivity-scale) now start the fixture, and the
@headfulfullscreen test reuses the helper in place of its inline copy.
The fixture emits \x1b[?1003h\x1b[?1006h before its first render(), so waiting for offset 0 also implies the enable-mouse-events class the probes re-check is set — the row wait is strictly the later condition, not a weaker proxy. Report-count and timing assertions are untouched, so the change tightens setup without loosening what the tests pin. oxlint is clean on the file.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
Wheel-report tests now scroll a running TUI instead of enabling mouse mode while the shell may still be starting.
What Changed
Reuse the existing fullscreen TUI fixture for the two wheel-report probes and wait until its numbered rows render. The fixture owns mouse reporting, replacing direct xterm mode injection. The exact report counts, per-tick timing, and sensitivity checks remain unchanged. The existing visible-wheel test uses the same setup helper.
Why
CI sometimes loses mouse reporting immediately or after the first tick: the original setup only waited for a pane manager, so subsequent shell startup output could reset injected modes. A running fixture establishes the intended terminal state without sleeps or retries around the assertions.
Linked Issue
https://github.com/stablyai/orca/actions/runs/36473057092/job/109102368779
Visual Proof
N/A — test fixture change only; no application behavior changes.
Testing
Review
Reuses the fixture and launch path already exercised by this spec. No production, protocol, remote-host, or platform-specific changes.
Agent skill upstream boundary
Checklist