flutter_gherkin_with_driver library

Classes

AppDriverAdapter<TNativeAdapter, TFinderType, TWidgetBaseType>
AttachScreenshotOnFailedStepHook
FlutterDriverAppDriverAdapter
FlutterDriverReporter
The Flutter driver helpfully logs ALL messages to the stderr output useless something is listening to the messages. This reporter listens to the messages from the driver so nothing is logged to the stderr stream unless it is actually an error. This can cause problems with CI servers for example as they will mark a process as failed if it logs to the stderr stream. So Flutter driver will log a normal info message to the stderr and thus make the process fail from the perspective of a CI server.
FlutterDriverTestConfiguration
FlutterDriverWorld
Driver version of the FlutterWorld with a typed driver
FlutterTestConfiguration
FlutterTypedAdapterWorld<TDriver, TFinder, TWidget>
The world object that can be used to store state during a single test. It also allows interaction with the app under test through the appDriver which exposes an instance of AppDriverAdapter and a typed instance of TDriver of the actual class that is able to interact with the app under test
FlutterWorld
The world object that can be used to store state during a single test. It also allows interaction with the app under test through the appDriver which exposes an instance of AppDriverAdapter
SwipeOnKeyStep
Swipes in a cardinal direction on a widget discovered by its key.
SwipeOnTextStep
Swipes in a cardinal direction on a widget discovered by its test.

Functions

givenOpenDrawer() → StepDefinitionGeneric<World>
Opens the applications main drawer
restartAppStep() → StepDefinitionGeneric<World>
siblingContainsTextStep() → StepDefinitionGeneric<World>
Discovers a widget by its text within the same parent. For example, discovering X while only being aware of Y: Row(children: Text('Y'), Text('X') )
tapTextWithinWidgetStep() → StepDefinitionGeneric<World>
Taps a widget that contains the text within another widget. If the text is not visible, the ancestor will be scrolled.
tapWidgetOfTypeStep() → StepDefinitionGeneric<World>
Taps a widget of type.
tapWidgetOfTypeWithinStep() → StepDefinitionGeneric<World>
Taps a widget of type within another widget.
tapWidgetWithTextStep() → StepDefinitionGeneric<World>
Taps a widget that contains text.
textExistsStep() → StepDefinitionGeneric<World>
Asserts the existence of text on the screen.
textExistsWithinStep() → StepDefinitionGeneric<World>
Asserts the existence of text within a parent widget.
thenExpectElementToHaveValue() → StepDefinitionGeneric<World>
Expects the element found with the given control key to have the given string value.
waitUntilKeyExistsStep() → StepDefinitionGeneric<World>
Waits until a widget is present or absent.
waitUntilTypeExistsStep() → StepDefinitionGeneric<World>
Waits until a widget type is present or absent.
whenFillFieldStep() → StepDefinitionGeneric<World>
Enters the given text into the widget with the key provided
whenPauseStep() → StepDefinitionGeneric<World>
Pauses the execution for the provided number of seconds. Handy when you want to pause to check something. Note: this should only be used during development as having to pause during a test usually indicates timing issues
whenTapBackButtonWidget() → StepDefinitionGeneric<World>
Taps the back button widget
whenTapWidget() → StepDefinitionGeneric<World>
Taps the widget found with the given control key.
whenTapWidgetWithoutScroll() → StepDefinitionGeneric<World>