After updating to
Compose 1.2 we have a ton of flaky UI tests (end-to-end tests).
•
Test instrumentation process crashed.
app simply stops responding to some focus event and then instrumentation timeouts after 5 seconds, what's more, the interaction is on non-compose view at this particular time.
•
java.lang.IllegalStateException: No compose hierarchies found in the app. Possible reasons include ...
suddenly this started happening, but not always - probably tests access activity too early, seems like idling resource issue, but this was not happening at all before update
• Compose recomposing forever - timeouting because not able to reach an idle state - this was only issue I was able to fix - we were missing
remember
, but actually without UI test no repeated recomposition was happening there
Do you any similar experience, tips where to look for issues/errors/fixes?