test_screen library

Classes

AndroidFirebaseTestLab
Recover the list of Android devices that are defined in Firebase Test Lab.
ChildrenWithSomeOrderMatcher
Compare the Actual finder children with the finders sequentially.
IosFirebaseTestLab
Recover the list of iOS devices that are defined in Firebase Test Lab.
TestScreenConfig
Configuration for screen tests. locales a list of locales to test.
TestScreenDevice
Definition of a device for testing.
TestScreenFont
A font used in the test.

Enums

UITargetPlatform
The platform that user interaction should adapt to target. This is the same enum than TargetPlatform on foundation/platform.dart, but web options are added. The web options means that it's a web application running in a browser that is executed in the target platform.

Extensions

WidgetTesterExtension on WidgetTester
Extension on WidgetTester for recovering some useful information

Functions

initializeDefaultTestScreenConfig(TestScreenConfig config, {List<TestScreenFont> fonts = const [], bool loadDefaultFonts = true}) Future<void>
Initialize the default configuration for all the screen tests. fonts are a list of fonts to use in the screen test. loadDefaultFonts loads all the fonts that you have on your project, additionally test_screen have a Roboto font for Android and a SFProDisplay-Regular and SFProText-Regular for iOS.
testScreen(Object description, Future<Widget> createScreen(), Future<void> onTest(WidgetTester tester), {TestScreenConfig? config, UITargetPlatform? onlyPlatform}) → void
It does exactly the same than testScreenUI, but doesn't do the golden files bitmap comparison.
testScreenUI(Object description, Future<Widget> createScreen(), {Future<void> onTest(WidgetTester tester)?, String? goldenDir, TestScreenConfig? config, UITargetPlatform? onlyPlatform}) → void
Use this function for testing custom StatelessWidgets and StatefulWidgets that represent screens.
wrapWidget(Widget widget) Widget
Wraps a widget with the wrapper configured on initializeDefaultTestScreenConfig