AFUIPrototypeDefinitionContext class

A context wrapper for defining single screen test.

This class is intended to provide a quick start for the most common methods in defining single screen tests, and to enable extensions later without changing the test definition function profile.

Inheritance

Constructors

AFUIPrototypeDefinitionContext({required AFSingleScreenTests screenTests, required AFWidgetTests widgetTests, required AFDialogTests dialogTests, required AFDrawerTests drawerTests, required AFBottomSheetTests bottomSheetTests, required AFDefineTestDataContext testData})

Properties

bottomSheetTests AFBottomSheetTests
final
dialogTests AFDialogTests
final
drawerTests AFDrawerTests
final
hashCode int
The hash code for this object.
no setterinherited
log → Logger?
no setterinherited
registry AFDefineTestDataContext
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenTests AFSingleScreenTests
final
widgetTests AFWidgetTests
final

Methods

createStateView<TStateView extends AFFlexibleStateView>({required dynamic stateView, required AFCreateStateViewDelegate<TStateView> creator}) → TStateView
inherited
currentTime() AFTimeState
inherited
defineBottomSheetPrototype({required AFPrototypeID id, required Object? stateView, required AFNavigatePushAction navigate, AFTestTimeHandling timeHandling = AFTestTimeHandling.paused, String? title}) AFSingleScreenPrototypeBody
defineDialogPrototype({required AFPrototypeID id, required Object? stateView, required AFNavigatePushAction navigate, AFTestTimeHandling timeHandling = AFTestTimeHandling.paused, String? title}) AFSingleScreenPrototypeBody
Define a prototype which shows a single screen in a particular screen view state/route param state.
defineDrawerPrototype({required AFPrototypeID id, required Object? stateView, required AFNavigatePushAction navigate, AFTestTimeHandling timeHandling = AFTestTimeHandling.paused, String? title}) AFSingleScreenPrototypeBody
defineReusableTest({required AFScreenTestID id, required AFSingleScreenPrototypeBody prototype, required AFReusableScreenTestBodyExecuteDelegate body, required List<Object> params, String? disabled}) → void
defineScreenPrototype({required AFPrototypeID id, required Object? stateView, AFNavigatePushAction? navigate, AFNavigateWithOnEventContextDelegate? navigateWithEventContext, AFTestTimeHandling timeHandling = AFTestTimeHandling.paused, String? title}) AFSingleScreenPrototypeBody
Define a prototype which shows a single screen in a particular screen view state/route param state.
defineWidgetPrototype({required AFPrototypeID id, required AFRenderConnectedChildDelegate render, List<AFRouteParam>? children, dynamic stateView, required AFCreateWidgetLaunchParamDelegate createLaunchParam}) AFSingleScreenPrototypeBody
executeReusableTest(AFSingleScreenPrototypeBody body, AFScreenTestID bodyId, {List<Object> params = const <Object>[], String? disabled}) → void
This is obsolete, do not use.
find<TResult extends Object>(dynamic testDataId) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
td<TData>(dynamic testDataId) → TData
Looks up the test data defined in your test_data.dart file for a particular test data id.
inherited
td2<TResult extends Object>(dynamic testDataId) → TResult
inherited
testData<T extends Object>(dynamic testDataId) → T
Looks up the test data defined in your test_data.dart file for a particular test data id.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited