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
gildor
10/11/2022, 7:57 AM
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
Radoslaw Juszczyk
10/11/2022, 8:49 AM
i dont have any composables in the Activity A, anyway it behaves the same way if I use
createAndroidComposeRule<ActivityA>
g
gildor
10/11/2022, 8:54 AM
yep, I got it, it should work even if original activity doesn’t have composables