I can’t find an assertion for background color (or any colors) in Compose UI test functions nor in any documentation so far. Is there a way to check whether an element has an expected background color?
z
Zach Klippenstein (he/him) [MOD]
01/11/2022, 3:41 PM
You can
rule.captureToImage()
and check the pixels
a
Afzal Najam
01/11/2022, 4:32 PM
Thanks @Zach Klippenstein (he/him) [MOD]. I guess that will have to do 😄