exitTest method

AFRouteState exitTest()

Pops the route until we get to the first afib test screen.

Implementation

AFRouteState exitTest() {
  AFibD.logRouteAF?.d("exitTest");
  if(isShowing(AFUIType.dialog)) {
    // our navigation in flutter fails if a dialog is active.
    // so, require that all dialog tests lose the dialog at the end.
    assert(false, "Please make sure all your UI tests for dialogs close the dialog at the end of the test.");
  }

  return _reviseScreen(screenHierarchy.exitTest());
}