Is there a way to take screenshots using `ComposeT...
# compose
e
Is there a way to take screenshots using
ComposeTestRule
with Robolectric. Currently getting
androidx.compose.ui.test.ComposeTimeoutException: Condition still not satisfied after 2000 ms
errors on
captureToImage
when calling
Copy code
rule.onRoot().captureToImage().asAndroidBitmap().compress(Bitmap.CompressFormat.PNG, 100, FileOutputStream(File("test.png")))
e
So without using Robolectric it should be fine? Does that mean I would need to run on a physical device / emulator in order for screenshots to work?
e
or use https://github.com/cashapp/paparazzi #squarelibraries
🙏 1
170 Views