So, i’m trying to use a CoilImage from the landsca...
# compose
m
So, i’m trying to use a CoilImage from the landscapist library, and put a content description on the image. I’m running into issues with robolectric tests where i can’t assert the content description. I presume this is because coil maybe wants to delay the content description until it actually kicks off the image load, which wouldn’t happen in a robolectric environment. Anyone else have this issue?
Copy code
@Composable
fun HeroBlock(
    modifier: Modifier = Modifier,
    data: Any,
    contentDescription: String? = null
) {
    CoilImage(
        modifier = modifier
            .testTag(TestTags.Hero)
            .semantics {
                this.heroData = data
            },
        contentDescription = contentDescription,
        imageModel = data
    )
}