Skip to content

Commit

Permalink
Small tweaks, RFR
Browse files Browse the repository at this point in the history
Change-Id: Ia16db6e6f5bec2714081b5ceaeeba36b2ee26105
  • Loading branch information
JoseAlcerreca committed Mar 27, 2024
1 parent 8452963 commit f9601bb
Showing 1 changed file with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import org.robolectric.annotation.LooperMode
import javax.inject.Inject

/**
* Tests that the navigation UI is rendered correctly on different screen sizes.
* Tests that the Snackbar is correctly displayed on different screen sizes.
*/
@OptIn(ExperimentalMaterial3WindowSizeClassApi::class)
@RunWith(RobolectricTestRunner::class)
Expand Down Expand Up @@ -141,7 +141,7 @@ class SnackbarScreenshotTests {
snackbarHostState,
400.dp,
500.dp,
"snackbar_compact_medium_none",
"snackbar_compact_medium_noSnackbar",
action = { },
)
}
Expand All @@ -155,7 +155,11 @@ class SnackbarScreenshotTests {
500.dp,
"snackbar_compact_medium",
) {
snackbarHostState.showSnackbar("This is a test snackbar message", duration = Indefinite)
snackbarHostState.showSnackbar(
"This is a test snackbar message",
actionLabel = "Action Label",
duration = Indefinite,
)
}
}

Expand All @@ -168,7 +172,11 @@ class SnackbarScreenshotTests {
600.dp,
"snackbar_medium_medium",
) {
snackbarHostState.showSnackbar("This is a test snackbar message", duration = Indefinite)
snackbarHostState.showSnackbar(
"This is a test snackbar message",
actionLabel = "Action Label",
duration = Indefinite,
)
}
}

Expand All @@ -181,7 +189,11 @@ class SnackbarScreenshotTests {
900.dp,
"snackbar_expanded_expanded",
) {
snackbarHostState.showSnackbar("This is a test snackbar message", duration = Indefinite)
snackbarHostState.showSnackbar(
"This is a test snackbar message",
actionLabel = "Action Label",
duration = Indefinite,
)
}
}

Expand Down

0 comments on commit f9601bb

Please sign in to comment.