fix(ui): the portrait bottom bar follows the sidebar labels setting (#2558)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-13 07:31:18 -05:00
1 parent 83de0e7f8c
commit c57cc33125
2 files changed
+19 -1

No files matched your search

@@ -93,6 +93,21 @@ class PortraitLayoutTest {
compose.onNodeWithContentDescription("Resume Steam").assertIsDisplayed()
}
@Test fun bottomBarFollowsSidebarLabelsSetting() {
val context = org.robolectric.RuntimeEnvironment.getApplication()
RailLabels.set(context, false)
compose.setContent {
DroidDeckTheme { BottomBar(state, "steam", {}, {}, actions, Modifier.size(480.dp, 64.dp)) }
}
compose.mainClock.advanceTimeBy(1_000)
compose.onNodeWithText("Library").assertDoesNotExist()
compose.onNodeWithContentDescription("Library").assertIsDisplayed()
compose.runOnIdle { RailLabels.set(context, true) }
androidx.compose.runtime.snapshots.Snapshot.sendApplyNotifications()
compose.mainClock.advanceTimeBy(1_000)
compose.onNodeWithText("Library").assertIsDisplayed()
}
@Test fun compactHeaderKeepsAllActionsReachable() {
compose.setContent {
DroidDeckTheme {