Repository navigation
test(cloud): re-enable the Cloud header width tests by measuring each row - #16590
Conversation
… row The two header width tests read SwiftUI's accessibility tree from a bare NSHostingView, which publishes nothing in-process, so they were disabled. The header now builds both ViewThatFits candidates through one internal actionsRow(_:picker:), and the tests measure each candidate's ideal width against the bar's content width, the comparison ViewThatFits makes. The wide case uses a short team name: the long fixture name cannot fit 420pt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 19 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. Review configuration: ⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
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 |
|
All contributors have signed the CLA ✍️ ✅ |
|
Subagent review at edf547d: approve.
Resource check: one-time layout code with no new loops, caches or logs, so no CPU, memory or disk impact. |
Dogfood tours of
|
|
Merge receipt for |
abdf121 fix: exclude unowned same-TTY processes from memory attribution (manaflow-ai#16559) 075dbef test: fix remote paste test failures on main from manaflow-ai#16523 (manaflow-ai#16596) 7d7a9d1 Stop US key positions from hijacking shortcuts on non-US layouts (manaflow-ai#16237) 134c9d9 Let AppKit cycle windows with the System Settings shortcut on ISO keyboards (manaflow-ai#16238) d0dd457 iOS: prevent toolbar flash when switching primary tabs (manaflow-ai#15712) 6c4b727 test(cloud): re-enable the Cloud header width tests by measuring each row (manaflow-ai#16590) 51b60f3 fix(remote): keep reconnect cleanup fixture process-free (manaflow-ai#16586) 6090053 fix(ci): reserve only queued release slots (manaflow-ai#16588) 0440a5d fix: make browser import hint cover all supported browsers (manaflow-ai#16483)
Summary
CloudMachinesHeaderCountTestswere disabled. They hostedCloudTeamPickerHeaderin a bareNSHostingViewand searched SwiftUI's accessibility tree, which an in-process test without an assistive client does not reliably publish. They found nothing, not even the button identifiers.ViewThatFitsnow builds both candidate rows through one internalactionsRow(_:picker:), with aCloudHeaderMachineActionsvalue (.inlineor.overflowMenu). This also removes the duplicated row code. Product behaviour does not change: it is the same two rows, in the same order, with the same modifiers and identifiers.ViewThatFitsmakes:Testing
CI; app-host changed suites. No local build:
swiftc -parsepasses on both files, andpython3 scripts/verify-local.pypassed 17/17 (it does not compile natively or run app tests).Resource check: test-only measurement plus a behaviour-neutral view refactor. It adds no loops, caches, logs or long-lived resources.
Changelog: none
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Re-enables the two Cloud header width tests by measuring each
ViewThatFitscandidate's ideal width instead of reading SwiftUI's accessibility tree, which a bareNSHostingViewdoes not publish in-process.The header now builds both candidate rows through one internal
actionsRow(_:picker:)with aCloudHeaderMachineActionsvalue (.inlineor.overflowMenu), which also removes the duplicated row code. Product behavior is unchanged. The tests compare each row's ideal width against the bar's content width — the same comparisonViewThatFitsmakes — and the wide case now uses a short team name, since the old long fixture name does not fit 420 pt.Written for commit edf547d. Summary will update on new commits.