isTestAction static method

bool isTestAction(
  1. dynamic action
)

Implementation

static bool isTestAction(dynamic action) {
  var shouldPop = false;
  if(action is AFNavigatePopAction) {
    shouldPop = action.worksInSingleScreenTest;
  }

  return ( shouldPop ||
           action is AFNavigateExitTestAction ||
           action is AFUpdatePrototypeScreenTestModelsAction ||
           action is AFPrototypeScreenTestAddError ||
           action is AFPrototypeScreenTestIncrementPassCount ||
           action is AFStartPrototypeScreenTestContextAction );
}