:test_tube: When testing screen orientation change...
# compose
t
🧪 When testing screen orientation change, am getting
Copy code
java.lang.IllegalStateException: No compose views found in the app. Is your Activity resumed?
➡️ More details in the SO thread
@Zach Klippenstein (he/him) [MOD] any idea? 🤔
cc @ppvi
p
Orientation change is not something officially supported yet (sadly) so I'm not surprised. Can you file a bug and post the link here? Cc @Jelle Fresen [G]
t
@ppvi 🆗. Will create a new issue.
p
oh you're creating a pure compose test with a composable that is very tightly coupled with the framework
I'd be very surprised if that worked 🙂 let's see what Jelle says
👍 1
can you try createAndroidComposeTestRule() instead and call onActivity after and before the config change? Not sure if it can work with multiple activities though.
t
I tried that. but I got some other error. I don’t recall the exact reason. It was something related to calling composable functions inside the
onActivity
lambda I guess. Do you want the exact stacktrace?
p
no need thanks
✔️ 1