Hello I have three activites, one classic and two...
# compose
r
Hello I have three activites, one classic and two with composable layout inside. I am trying to write an espresso test which starts in the Activity A, then clicks something, navigates to the Activity B, then clicks something (inside compose), and navigates to the Activity C and assert something there (on compose). How do I do it? If I use
createEmptyComposeRule
then the Activity C comes blank...
đź‘€ 1
g
why empty compose rul;e? I believe you need standard createAndroidComposeRule<ActivityA>, use it to start Activity A, use espesso on it and after that do usual checks and use this composeRule
r
i dont have any composables in the Activity A, anyway it behaves the same way if I use
createAndroidComposeRule<ActivityA>
g
yep, I got it, it should work even if original activity doesn’t have composables