Skip to content

Commit

Permalink
fix: remove unecessary back button test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenzoud committed Oct 17, 2024
1 parent 1b59278 commit 03a5eed
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,6 @@ class MenuKtTest {
composeTestRule.onNodeWithText("Welcome !").assertIsDisplayed()
}

@Test
fun menuScreen_backButton_navigatesBack() {
composeTestRule.setContent { MenuScreen(navigationActions = mockNavigationActions) }

// Perform click on the back button
composeTestRule.onNodeWithTag("back_button").performClick()

// Verify navigation back action is triggered
verify(mockNavigationActions).goBack()
}

@Test
fun menuScreen_displaysAllButtons() {
composeTestRule.setContent { MenuScreen(navigationActions = mockNavigationActions) }
Expand Down

0 comments on commit 03a5eed

Please sign in to comment.