test(RoomView): drop duplicated RightButtons composed cases - #7676
Merged
diegolmello merged 2 commits intoSep 11, 2026
Conversation
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
WalkthroughThe PR strengthens three null-render assertions in one ChangesRightButtons test coverage
Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Suggested labels: 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 |
diegolmello
requested a deployment
to
approve_e2e_testing
September 11, 2026 16:58 — with
GitHub Actions
Waiting
diegolmello
requested a deployment
to
android_build
September 11, 2026 17:01 — with
GitHub Actions
Waiting
diegolmello
requested a deployment
to
ios_build
September 11, 2026 17:01 — with
GitHub Actions
Waiting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
The composed
RightButtonssuite at the components level repeated six cases that already lived elsewhere with the same inputs and assertions: three guard cases (missingrid, invited membership, queued omnichannel) covered by the routing suite, and three threads-button unread-label cases covered by theRoomRightButtonsleaf suite. Their threenullsnapshot entries went with them, deleted by hand.Before removing the guards, the routing suite's three matching cases gained an exact
toJSON()null assertion, so the "renders an empty tree" proof the composed suite held is preserved rather than dropped. The stub-absence helper call stays alongside it.The
useSubscriptionUnreadsmock in the composed suite remains because the self-DM case still readsisSelfDmfrom it.Issue(s)
Follow-up to #7482; targets its
native-34-roomview-hooksbranch.How to test or reproduce
pnpm format-lintpassed.TZ=UTC pnpm testpassed: 315 suites, 2,896 tests, 423 snapshots, no obsolete snapshots.RightButtonssuites: 6 suites, 70 tests, 11 snapshots.Screenshots
Not applicable; test-only change.
Types of changes
Checklist
Further comments
Every other composed case and non-null snapshot is unchanged. Standards and specification reviews reported no defects.
Summary by CodeRabbit