Repository navigation
Update Cloud sidebar tests for the redesign and deferred workspace selection - #16882
Conversation
…lection The app-host test target could not compile on main until #16797, so these suites never ran against the changes that broke them: - Ports is a machine detail tab since the sidebar redesign (#16768), so the VPN guidance test opens the Ports tab instead of looking for a Ports group row. - Machine rows keep their buttons at rest at restingButtonsAlpha (#16768), so a closed menu leaves them dimmed, not hidden. - #16690 keeps an opened existing Cloud workspace out of view until its remote layout is applied, so the two open tests expect the original workspace selected while the attach is suspended. - The coordinator presents applied nodes in place (CloudTreeMachineDetailLayout), and row updates pair rows by position, so the attention test compares equally built trees.
|
All contributors have signed the CLA ✍️ ✅ |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (3)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 (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThis PR updates five cloud sidebar test files. Assertions now cover Ports-tab selection, attention-tree signatures, button alpha after menu tracking, and workspace selection while remote attachment is pending. ChangesPorts Detail Tab
Sidebar Attention Layout
Tree Header Actions
Workspace Attachment Selection
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Merge Risk: ⚪ Minimal · up to This PR updates sidebar regression tests without changing product behavior. Deferred workspace selection is checked after attachment through the shared open path, and no actionable current-head risk remains. 🚥 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 |
67001f1 Update Cloud sidebar tests for the redesign and deferred workspace selection (manaflow-ai#16882) 9a332ec cmux-tui: terminal host accept loop blocks on events (idle host woke 50x/s) (manaflow-ai#16864) 7ba85b7 Merge pull request manaflow-ai#16781 from manaflow-ai/cloud-sidebar-followups d6a22e7 Merge remote-tracking branch 'origin/cloud-new-machine-top' into repair-pr16781 a3e78a6 refresh hidden cloud detail pools 6cac783 Merge remote-tracking branch 'origin/cloud-new-machine-top' into repair-pr16781 396571d Merge remote-tracking branch 'origin/cloud-new-machine-top' into repair-pr16781 6e324f4 Merge remote-tracking branch 'origin/cloud-new-machine-top' into repair-pr16781 b053083 remove obsolete fleet freshness argument 9f49df6 Merge remote-tracking branch 'origin/cloud-sidebar-followups' into repair-pr16781 08c1463 remove duplicate fork monitor helper 77181d7 fix: remove duplicate fork monitor argument builder ee62151 use shared fork monitor contract in CLI bbccaec Merge remote-tracking branch 'origin/cloud-new-machine-top' into repair-pr16781 8cd5139 merge cloud row cleanup 4765a31 Merge remote-tracking branch 'origin/cloud-new-machine-top' into repair-pr16781 d649d29 restore cloud sidebar locale translations 1452e4c Merge remote-tracking branch 'origin/cloud-sidebar-followups' into repair-pr16781 45c2cbd Merge remote-tracking branch 'origin/cloud-new-machine-top' into repair-pr16781 dd52822 fix(localization): avoid stacked merge duplicate locales 09ed71b fix tab density enum conformance f6595f5 merge cloud machine creation gate dc7dd14 merge cloud sidebar base and preserve follow-ups 1b83129 fix(ci): restore shared Codex fork monitor helper a713a66 review fixes: a wide tab floor narrows the other mode bar tabs instead of overflowing, new strings in all 20 locales 969516b refresh cloud machines back to the bottom right of the panel 04331c1 right sidebar min (and opening) width 295, just enough for the machine tabs with counts c4240cf cloud sidebar follow-ups: displays tab, new workspace on top, refresh row above my devices, tabs never clip
Main's app-host suite could not compile until #16797, so these Cloud sidebar tests never ran against the merges that changed their behavior. They fail on main (full suite on b9ca453, and the changed-suites lane of #16781). Each one is a stale expectation of intended behavior, not a product regression:
CloudPortsVPNAffordanceTests"A populated live Ports tree keeps visible VPN setup guidance": Ports became a machine detail tab in cloud sidebar redesign: quieter machine rows, tabs for ports, terminals and resources, one hover system #16768, so there is no Ports group row. The test opens the Ports tab through the coordinator and checks the tab row's rows.CloudTreeHeaderActionsTests"An open menu keeps its row hovered until it closes": cloud sidebar redesign: quieter machine rows, tabs for ports, terminals and resources, one hover system #16768 keeps machine-row buttons visible at rest atrestingButtonsAlpha(also asserted inCloudTreeMachineMenuTests). After the menu closes they return to that value, not 0.CloudWorkspaceRowOpenTests"Click and Return publish the same local identity…" andCloudWorkspaceCreationSidebarTests"An existing Cloud workspace row admits one local workspace…": Fix initial Cloud workspace layout restore #16690 keeps the admitted workspace out of view until its remote layout is applied, then selects it. The tests now expect the original workspace selected while the attach is suspended; the existing post-completion checks still require the admitted workspace to be selected.CloudSidebarAttentionLayoutTests"Targeted refresh includes the collapsed folder…" (also run byCloudSidebarAcceptanceTests.pinsAndUnreadState):applypresents the nodes in place throughCloudTreeMachineDetailLayout, andCloudTreeRowUpdatepairs rows by position. The test compared a presented tree with a fresh one; it now compares equally built trees. Production computes both signatures from presented trees and only uses the row update when the structure is unchanged.Testing: the
app-host unit tests (changed suites)lane runs the touched suites.Changelog
No user-facing change.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Updates Cloud sidebar tests that were broken by the sidebar redesign and deferred workspace selection, so the app-host suite compiles and passes again on main.
These tests never ran against the merges that changed their behavior, so each one now matches the intended behavior instead of the stale pre-redesign expectation. No product behavior changes.
Written for commit 66dd1c8. Summary will update on new commits.
Summary by CodeRabbit