TestFirebaseHelper class

Helper for the Firebase reference that the automated testing framework will use when running the tests. Set the static firebase value to the one to use within the test steps.

This also provides a simple way to ensure all the test steps are registered on the TestStepRegistry via the registerTestSteps function.

Constructors

TestFirebaseHelper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

autoformatJson bool
A config variable that instructs the JSON value to autoformat the JSON as it is being entered or not. Set to true to enable the autoformatter. Set to null or false to disable it.
getter/setter pair
firebase ↔ FirebaseDatabase
Returns either the custom set FirebaseDatabase reference, or the default instance if one has not been set.
getter/setter pair

Static Methods

buildJsonEditText({required BuildContext context, required String id, String? defaultValue, required TranslationEntry label, List<ValueValidator>? validators, required Map<String, dynamic> values}) Widget
registerTestSteps([TestStepRegistry? registry]) → void
Registers the test steps to the optional registry. If not set, the default TestStepRegistry will be used.