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>
-