hey all, is there a compose channel for testing? I...
# compose
b
hey all, is there a compose channel for testing? I am trying to write a test for a back button that goes to another screen and having trouble setting up the code to show it goes back to that previous screen. Any help please
Copy code
@Test
fun arrowBackClickTest() {
    composeTestRule.setContent {
        WHApplicationTheme {
            LoginScreen({}, {}, {})
        }
    }
    composeTestRule
        .onNodeWithTag(ARROW_BACK)
        .performClick()
    val route = navController.currentBackStackEntry?.destination?.route
    assertThat(route).equals(OnBoardScreen({},{})
}