Repository navigation
test: stop asserting SwiftUI rows in the sidebar AX walk again - #14625
Conversation
#14406 dropped the Context.swift expectation from mountedSidebarAndProjectPanelAccessibilityWalkIsAcyclic because, with no assistive client attached, SwiftUI does not vend the project panel's rows in the app host, so a 5 s wait still saw only the sidebar row's text. The #12817 merge (ae3ce37) brought back 63a6e63's earlier wait-and-assert version, written before #14406 landed. Every app-host run that schedules the suite now fails it after the 5 s wait (PR runs 36123906444 and 36123840967, shard 6). Restore #14406's version. The walk still descends into the hosting view for the cycle and depth checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
All contributors have signed the CLA ✍️ ✅ |
|
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: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe sidebar accessibility test now walks the mounted window once after AppKit layout. It retains the cycle, depth, text-view, and link checks, and no longer asserts that ChangesSidebar accessibility test
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The test no longer asserts unavailable project-panel rows and keeps its other accessibility checks. No actionable merge-blocking risk is evident. 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
|
Merge receipt for |
1348db7 test: stop asserting SwiftUI rows in the sidebar AX walk again (manaflow-ai#14625) 2e269cd Fix Files pane refresh after filesystem changes (manaflow-ai#9589)
Why
SidebarAccessibilityTreeTests.mountedSidebarAndProjectPanelAccessibilityWalkIsAcyclic()fails on current main after its 5 s wait:Expectation failed: walk.textValues.contains { $0.contains("Context.swift") }. Seen on shard 6 of two unrelated PRs:#14406 already removed this expectation. With no assistive client attached, SwiftUI does not vend the project panel's rows in the app host, and waiting 5 s did not help (job 107980861038). The #12817 merge (ae3ce37) then brought back 63a6e63's wait-and-assert version, which was written before #14406 landed, so main regressed.
What
Restore #14406's version of the file. This is a one-hunk revert of the reintroduced wait and expectation. The walk still descends into the hosting view for the cycle and depth checks.
Validation
git diff a855dbfecb0 HEAD -- cmuxTests/SidebarAccessibilityTreeTests.swiftis empty. CI runs the test on the app-host shards.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes the flaky
mountedSidebarAndProjectPanelAccessibilityWalkIsAcyclictest by removing the assertion on SwiftUI-vended project panel rows.Written for commit 18995f1. Summary will update on new commits.
Summary by CodeRabbit