Say I have the following app structure:
[View Controller 1] -> tap on next button
[View Controller 2] -> Check for Title
In EarlGrey, I defined this test by doing:
[[EarlGrey selectElementWithMatcher:grey_text(@"Next Button")]
performAction:grey_tap()]
[[EarlGrey selectElementWithMatcher:grey_text(@"Screen Title")]
assertWithMatcher:grey_sufficientlyVisible()];
But now, when I want to test for [View Controller 3]
, I notice that the app is still stuck on [View Controller 2]
. Is there a call that I am missing that can enable me to go back to the first screen or reset the application for the next test?