TestStepWidgetActions class
Executes widget-facing interactions for a test step.
This boundary keeps finder resolution, gesture delivery, and text input mechanics together while the step executor remains focused on dispatch.
Constructors
-
TestStepWidgetActions({required WidgetTester tester, required AssertionEngine assertions, required TestExecutionConfig config, required TestStepRuntime runtime, required ScrollableWaiter scrollableWaiter, required Future<
void> waitFor({List<String> anyOf, String? id, TestStep? step, ElementTarget? target, String? text, required int timeoutMs}), FutureOr<void> onEvidenceBoundary(TestStep step)?})
Properties
- assertions → AssertionEngine
-
final
- config → TestExecutionConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onEvidenceBoundary
→ FutureOr<
void> Function(TestStep step)? -
final
- runtime → TestStepRuntime
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollableWaiter → ScrollableWaiter
-
final
- tester → WidgetTester
-
final
-
waitFor
→ Future<
void> Function({List<String> anyOf, String? id, TestStep? step, ElementTarget? target, String? text, required int timeoutMs}) -
final
Methods
-
checkFinder(
Finder finder, {TestStep? step, Future< void> onBeforeToggle()?}) → Future<void> - Idempotent check — no-op when already checked (matches uncheck symmetry).
-
clearText(
String id, {TestStep? step, Future< void> onBeforeText()?}) → Future<void> -
doubleTapFinder(
Finder finder, {TestStep? step, Future< void> onBeforeFirstTap()?}) → Future<void> -
dragFinder(
Finder finder, Offset offset, {TestStep? step, Future< void> onBeforeDrag()?}) → Future<void> -
enterText(
String id, String value, {bool submit = false, TestStep? step, int? timeoutMs, Future< void> onBeforeText()?}) → Future<void> -
enterTextOn(
String id, String value) → Future< void> -
enterTextOnFinder(
Finder finder, String value, {bool submit = false, bool replace = false, TestStep? step, Future< void> onBeforeText()?}) → Future<void> -
focusFinder(
Finder finder, {TestStep? step}) → Future< void> -
focusWidget(
String id, {TestStep? step}) → Future< void> -
longPressFinder(
Finder finder, {TestStep? step, Future< void> onBeforeLongPress()?}) → Future<void> -
longPressWidget(
String id, {TestStep? step, Future< void> onBeforeLongPress()?}) → Future<void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scrollUntilVisible(
String id, {String? scrollableId, required int timeoutMs}) → Future< void> -
scrollUntilVisibleFinder(
Finder finder, {String? scrollableId, int? timeoutMs}) → Future< void> -
select(
String id, String? value, {TestStep? step, int? timeoutMs, Future< void> onBeforeSelection()?}) → Future<void> -
selectIndexOnFinder(
Finder finder, int index, {TestStep? step, Future< void> onBeforeSelection()?}) → Future<void> -
selectOnFinder(
Finder finder, String value, {TestStep? step, Future< void> onBeforeSelection()?}) → Future<void> -
setSliderOnFinder(
Finder finder, double value, {TestStep? step, Future< void> onBeforeChange()?}) → Future<void> -
submitText(
String id, {TestStep? step, int? timeoutMs, Future< void> onBeforeSubmit()?}) → Future<void> -
submitTextOnFinder(
Finder finder, {TestStep? step, Future< void> onBeforeSubmit()?}) → Future<void> -
tap(
String id, {int? timeoutMs, TestStep? step, Future< void> onBeforeTap()?}) → Future<void> -
tapFinder(
Finder finder, {TestStep? step, Future< void> onBeforeTap()?, int? timeoutMs}) → Future<void> - Taps an already-resolved Finder (exact element identity; no id rematch).
-
tapWidget(
String id, {int? timeoutMs}) → Future< void> -
toggle(
String id, {TestStep? step, int? timeoutMs, Future< void> onBeforeToggle()?}) → Future<void> -
toggleFinder(
Finder finder, {TestStep? step, Future< void> onBeforeToggle()?}) → Future<void> -
toString(
) → String -
A string representation of this object.
inherited
-
uncheckFinder(
Finder finder, {TestStep? step, Future< void> onBeforeToggle()?}) → Future<void> - Idempotent uncheck — no-op when already unchecked.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited