Speed up menu bar UI test clicks - #79
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
dayline-website | 97ac226 | Sep 12 2026, 01:51 AM |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe UI tests now use a shared helper for menu-bar clicks. The helper temporarily sets XCTest event confirmation to 0.1 seconds, performs the click, restores the previous value, and fails when the required private API is unavailable. The README documents this behavior. ChangesMenu-bar click handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to The UI-test-only timeout adjustment is scoped to menu-bar clicks and restores normal behavior afterward, with no active merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 1 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
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 |
Review: PR #79 — Speed up menu bar UI test clicksVerdict: Approve. This is a well-scoped, test-harness-only change with explicit failure modes if Apple removes the private API. The speedup (5.53s → 0.68s median per click) is significant and the mechanism is sound. I reviewed the diff statically (can't build a macOS XCTest target here), and the call-site plumbing checks out: both What's done well
Potential bugs / risks (all low)
Suggestions (optional)
DocumentationThe README addition accurately describes the mechanism, the restoration guarantee, and the explicit-failure behavior. No app code, entitlements, or release artifacts change — correct call that no release is needed. Nice work; the pre-commit autoreview's clean result is consistent with what I see. |

XCTest waits five seconds for a mouse-up acknowledgement after menu-bar clicks, even when the panel is already ready. Scope its private event-confirmation timeout to menu toggles and restore the previous value immediately afterward. Existing idle and content-readiness checks remain enabled, with explicit failures if a future Xcode removes the required API.
Four focused UI tests passed, covering 14 menu toggles, creation flows, issue details, and Settings. Median menu-click time fell from 5.53s to 0.68s; the Settings test fell from 21.4s to 11.4s. System logs confirmed the normal five-second timeout is restored for subsequent actions. The pre-commit autoreview completed without actionable findings.
Only the UI-test harness and its documentation change. No app release is needed.
Summary by CodeRabbit
Tests
Documentation