Add waitForIdle

Change-Id: I702fbca6ba79e3705e3226b0f3088923c89fc2cb
pull/1560/head
Jonathan Koren 1 year ago
parent 98085dc016
commit 372c790cf6

@ -174,6 +174,7 @@ class InterestsListDetailScreenTest {
val firstTopic = getTopics().first() val firstTopic = getTopics().first()
onNodeWithText(firstTopic.name).performClick() onNodeWithText(firstTopic.name).performClick()
waitForIdle()
Espresso.pressBack() Espresso.pressBack()
assertTrue(unhandledBackPress) assertTrue(unhandledBackPress)
@ -193,6 +194,7 @@ class InterestsListDetailScreenTest {
val firstTopic = getTopics().first() val firstTopic = getTopics().first()
onNodeWithText(firstTopic.name).performClick() onNodeWithText(firstTopic.name).performClick()
waitForIdle()
Espresso.pressBack() Espresso.pressBack()
onNodeWithTag(listPaneTag).assertIsDisplayed() onNodeWithTag(listPaneTag).assertIsDisplayed()

Loading…
Cancel
Save