From 8b976cee3c0bd4bfd82c38c94f26e448db7a0128 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 25 Feb 2021 09:57:08 +0530 Subject: [PATCH] BottomNavigationLayoutTest: remove unneeded assertExists Signed-off-by: Harsh Shandilya --- .../dev/msfjarvis/lobsters/BottomNavigationLayoutTest.kt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/src/androidTest/java/dev/msfjarvis/lobsters/BottomNavigationLayoutTest.kt b/app/src/androidTest/java/dev/msfjarvis/lobsters/BottomNavigationLayoutTest.kt index d5aa53e2..e0c61417 100644 --- a/app/src/androidTest/java/dev/msfjarvis/lobsters/BottomNavigationLayoutTest.kt +++ b/app/src/androidTest/java/dev/msfjarvis/lobsters/BottomNavigationLayoutTest.kt @@ -48,7 +48,6 @@ class BottomNavigationLayoutTest { fun bottomNavItemCountTest() { // Test to make sure total items are equal to enum objects present in Destination composeTestRule.onNodeWithTag("LobstersBottomNav") - .assertExists() .assertIsDisplayed() .onChildren() .assertCountEquals(Destination.values().size) @@ -58,7 +57,6 @@ class BottomNavigationLayoutTest { fun bottomNavItemTest() { // Check hottest BottomNavItem is rendered correctly composeTestRule.onNodeWithTag("LobstersBottomNav") - .assertExists() .assertIsDisplayed() .onChildAt(0) .assertTextEquals("Hottest") @@ -67,7 +65,6 @@ class BottomNavigationLayoutTest { // Check saved BottomNavItem is rendered correctly composeTestRule.onNodeWithTag("LobstersBottomNav") - .assertExists() .assertIsDisplayed() .onChildAt(1) .assertTextEquals("Saved") @@ -79,7 +76,6 @@ class BottomNavigationLayoutTest { fun bottomNavItemSelectedTest() { // Check hottest BottomNav item is selected composeTestRule.onNodeWithTag("LobstersBottomNav") - .assertExists() .assertIsDisplayed() .onChildAt(0) .assertIsSelected() @@ -87,7 +83,6 @@ class BottomNavigationLayoutTest { // Check saved BottomNav item is not selected composeTestRule.onNodeWithTag("LobstersBottomNav") - .assertExists() .assertIsDisplayed() .onChildAt(1) .assertIsNotSelected() @@ -99,14 +94,12 @@ class BottomNavigationLayoutTest { // Check hottest BottomNav item is not selected composeTestRule.onNodeWithTag("LobstersBottomNav") - .assertExists() .assertIsDisplayed() .onChildAt(0) .assertIsNotSelected() // Check saved BottomNav item is selected composeTestRule.onNodeWithTag("LobstersBottomNav") - .assertExists() .assertIsDisplayed() .onChildAt(1) .assertIsSelected()