flutter/dev/integration_tests/web_e2e_tests
Emmanuel Garcia f01556ab75
Bump Android dependencies that rely on Jcenter (#96558)
* Bump video_player in flutter gallery

* Update packages

* Update dependencies

* Bump device_info

* Update dev/devicelab/bin/tasks/build_ios_framework_module_test.dart

Co-authored-by: Jenn Magder <magder@google.com>

* Update dev/devicelab/bin/tasks/module_custom_host_app_name_test.dart

Co-authored-by: Jenn Magder <magder@google.com>

* Update dev/devicelab/bin/tasks/module_test.dart

Co-authored-by: Jenn Magder <magder@google.com>

* Remove deprecated device_info from ios-frameworks test

Co-authored-by: Jenn Magder <magder@google.com>
2022-01-12 20:13:32 -08:00
..
lib [web] fix race in the image_loading_integration.dart test (#92303) 2021-10-26 19:03:03 -07:00
test_driver [web] fix race in the image_loading_integration.dart test (#92303) 2021-10-26 19:03:03 -07:00
web [web] use local CanvasKit bundle in all e2e tests (#92305) 2021-10-26 19:08:05 -07:00
pubspec.yaml Bump Android dependencies that rely on Jcenter (#96558) 2022-01-12 20:13:32 -08:00
README.md [web] fix web_e2e_tests README (#92277) 2021-10-21 17:58:07 -07:00

Flutter Web integration tests

To run the tests in this package download the chromedriver matching the version of Chrome. To find out the version of your Chrome installation visit chrome://version.

Start chromedriver using the following command:

chromedriver --port=4444

An integration test is run using the flutter drive command. Some tests are written for a specific web renderer and/or specific build mode. Before running a test, check the _runWebLongRunningTests function defined in dev/bots/test.dart, and determine the right web renderer and the build mode you'd like to run the test in.

Here's an example of running an integration test:

flutter drive --target=test_driver/text_editing_integration.dart \
  -d web-server \
  --browser-name=chrome \
  --profile \
  --web-renderer=html

This example runs the test in profile mode (--profile) using the HTML renderer (--web-renderer=html).

More resources: