Repository navigation
test(e2e): report what clickWhenStill last saw when it times out - #2219
Conversation
A timeout said only "visible and still", so a missing element, a hidden one, and one that keeps moving all read the same. The message now ends with the last two samples: "absent", "hidden", or the element's center. Refs #2218
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe ChangesClick sampling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to This change improves diagnostics for click timeouts but does not fix the separately reported macOS positioning failure. The diagnostic path behaves as intended, and no PR-introduced merge-blocking risk is established. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
ESLint install failed: package-manager metadata or lockfile failed a supply-chain integrity policy. Refresh the packageManager pin and lockfile locally. 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. A rabbit checks the page in flight, Comment |
|
Verdict: PASS+NOTES
|
Why
The phone spec in #2218 fails on macOS with "visible and still" timeouts. That message reads the same for an element that is missing, one that is hidden, and one that keeps moving. The failure does not reproduce on Linux, so the next macOS run has to say which one it is.
What changed
clickWhenStillnow ends its timeout message with its last two samples:"absent","hidden", or the element's center.Scope
Blast Radius
Test helpers only. Seven specs use
clickWhenStill. All seven still pass.Verification
Last samples: "absent", "absent".,"hidden", "hidden"., and{"x":126.96875,"y":19.75}, {"x":161.96875,"y":19.75}..agents/run-e2eon all seven caller specs with Obsidian 1.14.4 on Linux: 7 files and 24 tests passed.Refs #2218
Note
Improve
clickWhenStilltimeout diagnostics in e2e testsThe
clickWhenStillhelper in uiHelpers.ts now tracks why a click wait failed. It distinguishes three states: selector absent, selector present but hidden, and selector still moving."absent"/"hidden"status instead of a nullable coordinate objectMacroscope summarized 972e99b.
Summary by CodeRabbit