mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 13:55:58 +00:00
fix(ui): the portrait bottom bar follows the sidebar labels setting (#2558)
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user