mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 00:57:02 +05:30
BottomNavigationLayoutTest: remove unneeded assertExists
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
6e77a5e94b
commit
8b976cee3c
1 changed files with 0 additions and 7 deletions
|
@ -48,7 +48,6 @@ class BottomNavigationLayoutTest {
|
||||||
fun bottomNavItemCountTest() {
|
fun bottomNavItemCountTest() {
|
||||||
// Test to make sure total items are equal to enum objects present in Destination
|
// Test to make sure total items are equal to enum objects present in Destination
|
||||||
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
||||||
.assertExists()
|
|
||||||
.assertIsDisplayed()
|
.assertIsDisplayed()
|
||||||
.onChildren()
|
.onChildren()
|
||||||
.assertCountEquals(Destination.values().size)
|
.assertCountEquals(Destination.values().size)
|
||||||
|
@ -58,7 +57,6 @@ class BottomNavigationLayoutTest {
|
||||||
fun bottomNavItemTest() {
|
fun bottomNavItemTest() {
|
||||||
// Check hottest BottomNavItem is rendered correctly
|
// Check hottest BottomNavItem is rendered correctly
|
||||||
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
||||||
.assertExists()
|
|
||||||
.assertIsDisplayed()
|
.assertIsDisplayed()
|
||||||
.onChildAt(0)
|
.onChildAt(0)
|
||||||
.assertTextEquals("Hottest")
|
.assertTextEquals("Hottest")
|
||||||
|
@ -67,7 +65,6 @@ class BottomNavigationLayoutTest {
|
||||||
|
|
||||||
// Check saved BottomNavItem is rendered correctly
|
// Check saved BottomNavItem is rendered correctly
|
||||||
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
||||||
.assertExists()
|
|
||||||
.assertIsDisplayed()
|
.assertIsDisplayed()
|
||||||
.onChildAt(1)
|
.onChildAt(1)
|
||||||
.assertTextEquals("Saved")
|
.assertTextEquals("Saved")
|
||||||
|
@ -79,7 +76,6 @@ class BottomNavigationLayoutTest {
|
||||||
fun bottomNavItemSelectedTest() {
|
fun bottomNavItemSelectedTest() {
|
||||||
// Check hottest BottomNav item is selected
|
// Check hottest BottomNav item is selected
|
||||||
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
||||||
.assertExists()
|
|
||||||
.assertIsDisplayed()
|
.assertIsDisplayed()
|
||||||
.onChildAt(0)
|
.onChildAt(0)
|
||||||
.assertIsSelected()
|
.assertIsSelected()
|
||||||
|
@ -87,7 +83,6 @@ class BottomNavigationLayoutTest {
|
||||||
|
|
||||||
// Check saved BottomNav item is not selected
|
// Check saved BottomNav item is not selected
|
||||||
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
||||||
.assertExists()
|
|
||||||
.assertIsDisplayed()
|
.assertIsDisplayed()
|
||||||
.onChildAt(1)
|
.onChildAt(1)
|
||||||
.assertIsNotSelected()
|
.assertIsNotSelected()
|
||||||
|
@ -99,14 +94,12 @@ class BottomNavigationLayoutTest {
|
||||||
|
|
||||||
// Check hottest BottomNav item is not selected
|
// Check hottest BottomNav item is not selected
|
||||||
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
||||||
.assertExists()
|
|
||||||
.assertIsDisplayed()
|
.assertIsDisplayed()
|
||||||
.onChildAt(0)
|
.onChildAt(0)
|
||||||
.assertIsNotSelected()
|
.assertIsNotSelected()
|
||||||
|
|
||||||
// Check saved BottomNav item is selected
|
// Check saved BottomNav item is selected
|
||||||
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
composeTestRule.onNodeWithTag("LobstersBottomNav")
|
||||||
.assertExists()
|
|
||||||
.assertIsDisplayed()
|
.assertIsDisplayed()
|
||||||
.onChildAt(1)
|
.onChildAt(1)
|
||||||
.assertIsSelected()
|
.assertIsSelected()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue