Questions tagged [screenshot-testing]

5 questions
3
votes
2 answers

Capture the full composable height in screenshot test

I have this class which we use as a base class for our screenshot tests abstract class ScreenshotTest { @get:Rule val rule = createComposeRule() protected fun snapshotComposable( name: String, composable: @Composable ()…
Billda
  • 5,707
  • 2
  • 25
  • 44
2
votes
1 answer

Android Compose Test Slider Functionality

var sliderValue by remember { mutableStateOf(value = 0f) } Slider( value = sliderValue, valueRange = 0f..100f, onValueChange = { sliderValue = it }, ) I have this slider code, now I'm writing ScreenShot…
2
votes
1 answer

How can I run android-testify tests with Dagger Hilt?

I am attempting to integrate https://github.com/Shopify/android-testify to add screenshot testing to my app. I am having trouble, however, with getting the simplest of tests to run due to my app's current integration with Dagger Hilt. If I try to…
1
vote
1 answer

Using Jetpack Compose (Desktop), how can I render to an image without a window?

My use case that I'm attempting to create is a way to render a Compose application directly to a file, ideally without requiring an actual GUI window, e.g. for rendering the app on a server that does not have any UI. Using Jetpack Compose (Desktop)…
1
vote
1 answer

How can I capture Google Maps with android-testify

I am trying to leverage https://github.com/Shopify/android-testify to implement some screenshot tests. However, it is having trouble capturing the map. I have tried with and without setUseSoftwareRenderer and it seems to be displaying a black or…