
Updates all null safe dependencies to versions that allow 2.10 stable and 2.11 dev releases. Also updates flutter_goldens and flutter_goldens_client to allow 2.11 dev.
Summary
This test contains an app with a main page and subpages. The main page contains a list of buttons; each button leads to a designated subpage when tapped on. Each subpage should display some simple UIs to the screenshot tested.
The flutter driver test runs the app and opens each page to take a screenshot.
Use main_test.dart
to test against golden files stored on Flutter Gold.
Note that new binaries can't be checked in the Flutter repo, so use Flutter Gold instead.
Add a new page to test
- Create a new class that extends
Page
and implement the UI to be tested in thebuild
method. - The new class should set a static
title
andkey
- Add an instance of the new class to the
_allPages
list in themain.dart
- Create a new test case similar to
"'A page with an image screenshot"
intest_driver/main_test.dart
to run the screenshot test.
An example of a Page
subclass can be found in lib/image_page.dart
Environments
- Device Lab which runs the app on iPhone 6s.
- LUCI which runs the app on a Fuchsia NUC device.