Open fbattet opened 1 year ago
The problem seems to be in AsyncSizeResolver, For now workaround you can try this:
// rememberImagePainter will not auto set AsyncSizeResolver
Image(
rememberImagePainter("", imageLoader = imageLoader),
contentDescription = "image",
modifier = Modifier.size(100.dp),
)
// or
AutoSizeImage(
ImageRequest("") {
// set custom SizeResolver
size(SizeResolver(Size(100f, 100f)))
},
contentDescription = "image",
modifier = Modifier.size(100.dp),
imageLoader = imageLoader,
)
Neither works.
https://github.com/qdsfdhvh/compose-imageloader/pull/368 here is my test code, maybe it helps.
I got it
all tests./gradlew composeApp:recordPaparazziDebug |
individual test./gradlew composeApp:recordPaparazziDebug --tests="SampleTest" |
|
---|---|---|
mockmp + koin-test | ✅ | ❌ |
mockative + koin-test | ✅ | ❌ |
koint-test | ✅ | ✅ |
mockmp | ✅ | ✅ |
mockative | ✅ | ✅ |
Thank you for your help.
Sorry, I don't see the other side on my phone, I'll test it later ./gradlew composeApp:recordPaparazziDebug --tests="SampleTest"
https://github.com/qdsfdhvh/compose-imageloader/pull/368/commits/ec4071a95a2faa7525d754ce169c20c8283f3e54 replace imageLoader dispatcher maybe is a way.
I'm trying to write a Paparazzi ui test, but no image is displayed :
my test :
PS : I managed to write this kind of test with Coil