Arun Joseph
02/03/2022, 9:54 AM@Before
composeTestRule.setContent {
MainNavHost()
}
How can I finish the activity completely in @After
I tried
composeTestRule.activity.finish()
But that hangs foreverEspresso.pressBack()
to restore the activity to its main screen. Probably I should be navigating using my NavHost within my tests?mattinger
02/03/2022, 3:21 PMArun Joseph
02/03/2022, 3:25 PMcomposeTestRule.setContent {
MainNavHost()
}
the activity is brought to front with the content which was there at the end of first test.