prepare method

  1. @override
void prepare()

used to allow for custom configuration to ensure framework specific configuration is in place

Implementation

@override
void prepare() {
  customStepParameterDefinitions =
      List.from(customStepParameterDefinitions ?? Iterable.empty())
        ..addAll([
          ExistenceParameter(),
          SwipeDirectionParameter(),
        ]);
  stepDefinitions = List.from(stepDefinitions ?? Iterable.empty())
    ..addAll([
      ThenExpectElementToHaveValue(),
      WhenTapBackButtonWidget(),
      WhenTapWidget(),
      WhenTapWidgetWithoutScroll(),
      WhenLongPressWidget(),
      WhenLongPressWidgetWithoutScroll(),
      WhenLongPressWidgetForDuration(),
      GivenOpenDrawer(),
      WhenPauseStep(),
      WhenFillFieldStep(),
      ThenExpectWidgetToBePresent(),
      RestartAppStep(),
      SiblingContainsTextStep(),
      SwipeOnKeyStep(),
      SwipeOnTextStep(),
      TapTextWithinWidgetStep(),
      TapWidgetOfTypeStep(),
      TapWidgetOfTypeWithinStep(),
      TapWidgetWithTextStep(),
      TextExistsStep(),
      TextExistsWithinStep(),
      WaitUntilKeyExistsStep(),
      WaitUntilTypeExistsStep(),
    ]);
}