Is there any better idea to get screenshot tests with system UI? #1347
Closed
Jaehwa-Noh
started this conversation in
General
Replies: 2 comments 7 replies
-
Hi @Jaehwa-Noh, I'm not sure to fully understand the issue. SnackBars are not part of the SystemUi (unlike Toasts) and therefore should be rendered by Compose without any issue. |
Beta Was this translation helpful? Give feedback.
6 replies
-
I added the parameter for fake height at internal fun NiaApp(
appState: NiaAppState,
snackbarHostState: SnackbarHostState,
showSettingsDialog: Boolean,
onSettingsDismissed: () -> Unit,
onTopAppBarActionClick: () -> Unit,
bottomSystemUiHeight: Dp,
modifier: Modifier = Modifier,
) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now in Android project has roborazzi screenshot tests, but this doesn't contain System UI, so that we can't check this issue #1295 .
You can see the screenshots in this pull request #1343.
The problem is when we use another screenshot test library for get the System UI, we must use same device to pass the test.
For example, if I made screenshot tests with Tablet, other contributor must use same Tablet to pass my screenshot tests, which has the System UI.
I think it is worst situation that everyone must test it using same device.
Does Anybody have good ideas for this situation?
Beta Was this translation helpful? Give feedback.
All reactions