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 gray box.
What am I doing incorrectly or is this a limitation?
Example:
@RunWith(AndroidJUnit4::class)
internal class ShopifyTest {
@get:Rule
var rule = ScreenshotRule(ZoomMapActivity::class.java)
@ScreenshotInstrumentation
@Test
fun default() {
rule.setUseSoftwareRenderer(true)
.assertSame()
}
}