start recording
open the application
click on the objects(buttons, etc...)
finish recording
get generated kotlin codes just like Espresso recording

but in this project I didn't completely migrate to JetpackCompose still. but It recognizes it as a Jetpack Compose project
Currently, this is marked as expected behavior due to the limitation of Espresso with Compose.
https://issuetracker.google.com/issues/232961218
Android Studio could have made it as a warning instead of an error that would have worked for hyrbrid apps but as of now, it's an error.
Espresso testing framework cannot be used with Jetpack Compose so test recording is not yet available but Compose tests are fairly easy to write.
You can check the official documentation if this helps: https://developer.android.com/jetpack/compose/testing
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With