TestStepWaitExecutor class final
Owns state-based waits used by TestStepExecutor.
Each wait is bounded and advances frames only through observable Flutter or application work. Operation orchestration and evidence callbacks remain in the caller, so this class has one responsibility: wait for a condition.
Constructors
-
TestStepWaitExecutor({required WidgetTester tester, required EnsembleTestContext context, required AssertionEngine assertions, required ApplicationTestServices services, required TestExecutionConfig config, required TestStepRuntime runtime, required TestStepConditionWaiter conditionWaiter, required Finder finderForTargetStep(TestStep step, {bool requireInteractive}), required Finder finderForTarget(ElementTarget target, {bool requireInteractive}), VoidCallback? invalidateResolvedFinders, required void drainTransientFlutterDiagnostics(), FutureOr<
void> onEvidenceBoundary(TestStep step)?, FutureOr<void> onOperationEvidenceBoundary(OperationInput operation, String detail)?})
Properties
- assertions → AssertionEngine
-
final
- conditionWaiter → TestStepConditionWaiter
-
final
- config → TestExecutionConfig
-
final
- context → EnsembleTestContext
-
final
- drainTransientFlutterDiagnostics → void Function()
-
final
- finderForTarget → Finder Function(ElementTarget target, {bool requireInteractive})
-
final
- finderForTargetStep → Finder Function(TestStep step, {bool requireInteractive})
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- invalidateResolvedFinders → VoidCallback?
-
Drops any finder that captured concrete Elements before each target
wait poll. Async list and conditional rebuilds can replace those Elements
without an operation boundary advancing the observer revision.
final
-
onEvidenceBoundary
→ FutureOr<
void> Function(TestStep step)? -
final
-
onOperationEvidenceBoundary
→ FutureOr<
void> Function(OperationInput operation, String detail)? -
final
-
registeredHandlerKeys
→ Set<
String> -
no setter
- runtime → TestStepRuntime
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- services → ApplicationTestServices
-
final
- tester → WidgetTester
-
final
Methods
-
emitConditionBoundary(
OperationInput operation) → Future< void> -
executeInput(
OperationInput operation, {required OperationDescriptor descriptor}) → Future< void> -
Executes an authored or compiled operation through the same wait route.
Authored TestSteps already implement
OperationInput, so this avoids a second step-specific dispatch path and keeps their evidence callbacks on the original input. -
executeOperation(
TestOperation operation) → Future< void> - Executes a registered wait request selected by the core registry.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
waitForApi(
{required Object? name, required int times, required int timeoutMs}) → Future< void> -
waitForGone(
{required ElementTarget target, required int timeoutMs}) → Future< void> -
waitForTextCondition(
{String? text, List< String> anyOf = const [], required int timeoutMs, required Future<void> onMatched(String matchedText)}) → Future<void> -
Waits for a text condition using the same exact-match semantics as
registered
waitForoperations, without constructing an intermediate TestStep. -
waitForTextContains(
{String? text, List< String> anyOf = const [], required int timeoutMs}) → Future<void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited