You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(node): pin Message first in the node menu - #7967
Pins the node menu order from #7965 so a later edit cannot quietly move Message back down (meshtastic/design#171).
🧪 Testing Performed
NodeContextMenuOrderTest checks Message sits above favorite, mute and trace route, with and without Mute offered. Both cases fail with the old order and pass on main.
Summary by CodeRabbit
Tests
Added UI test coverage for node context menu item ordering across firmware versions, including the presence or absence of Mute.
Added Compose UI tests that check node context menu item order and Mute visibility for local firmware versions 2.7.18 and 2.7.15.
Changes: Node context menu tests
Layer / File(s)
Summary
Menu order coverage feature/node/src/jvmTest/kotlin/org/meshtastic/feature/node/component/NodeContextMenuOrderTest.kt
Added helpers to display an expanded context menu and read item positions. Tests check that Message appears before the specified items for firmware 2.7.18 and 2.7.15. The 2.7.15 test also checks that Mute is absent.
Merge Risk: Low · up to e8e32
The tests protect both firmware variants but do not fully enforce Message appearing first. This is a bounded coverage improvement and does not block merging.
Pre-merge checks: 8
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "test(node): pin Message first in the node menu" matches the changeset. The PR adds NodeContextMenuOrderTest, a Compose UI test that checks Message appears before Favorite, Mute, and Trace R…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Sibling Call Sites And Presence Semantics
The PR only adds menu-order tests. It does not change absence semantics or add a measurement field with a zero default.
Tests Prove The Path, Not The End State
Both tests check the rendered menu order. The earlier production order placed Favorite before Message, which would fail both tests. The tests do not use a fake backing store, size-only assertions, or …
Regression Coverage For Changed Behavior
The diff adds only NodeContextMenuOrderTest. It does not change production behavior, so the regression-coverage check is not applicable.
Moved Code Diffed Against Its Original
The diff adds one test file. It does not delete, move, or extract existing code, so this check does not apply.
Full details: Title check
Explanation
The title "test(node): pin Message first in the node menu" matches the changeset. The PR adds NodeContextMenuOrderTest, a Compose UI test that checks Message appears before Favorite, Mute, and Trace Route. The title names the test scope (node menu) and the asserted behavior (Message first). It is short, specific, and uses a conventional commit prefix. It does not list every case, such as firmware 2.7.15 without Mute, but that detail is not required.
Full details: Tests Prove The Path, Not The End State
Explanation
Both tests check the rendered menu order. The earlier production order placed Favorite before Message, which would fail both tests. The tests do not use a fake backing store, size-only assertions, or Unconfined emission ordering.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.
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
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.
Pins the node menu order from #7965 so a later edit cannot quietly move Message back down (meshtastic/design#171).
🧪 Testing Performed
NodeContextMenuOrderTestchecks Message sits above favorite, mute and trace route, with and without Mute offered. Both cases fail with the old order and pass on main.Summary by CodeRabbit