Skip to content

Commit bc56ba7

Browse files
committed
Add Test for Saved Top Level Destination
1 parent e40fb79 commit bc56ba7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/ui/NavigationTest.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ class NavigationTest {
166166
composeTestRule.apply {
167167
// GIVEN the user is on any of the top level destinations, THEN the Up arrow is not shown.
168168
onNodeWithContentDescription(navigateUp).assertDoesNotExist()
169-
// TODO: Add top level destinations here, see b/226357686.
169+
170+
onNodeWithText(saved).performClick()
171+
onNodeWithContentDescription(navigateUp).assertDoesNotExist()
172+
170173
onNodeWithText(interests).performClick()
171174
onNodeWithContentDescription(navigateUp).assertDoesNotExist()
172175
}

0 commit comments

Comments
 (0)