WhenTapWidgetWithoutScroll function

StepDefinitionGeneric<World> WhenTapWidgetWithoutScroll ()

Implementation

StepDefinitionGeneric WhenTapWidgetWithoutScroll() {
  return when1<String, FlutterWorld>(
    RegExp(
        r'I tap the {string} (?:button|element|label|icon|field|text|widget) without scrolling it into view$'),
    (key, context) async {
      final finder = find.byValueKey(key);

      await FlutterDriverUtils.tap(
        context.world.driver,
        finder,
      );
    },
  );
}