flutter/dev/integration_tests/web_e2e_tests
flutter-pub-roller-bot ead0a01bb9
Roll pub packages (#169865)
This PR was generated by `flutter update-packages --force-upgrade`.
2025-06-02 16:13:02 +00:00
..
lib Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
test_driver [web] Remove HTML from bots, test suites and e2e tests (#161537) 2025-01-22 18:50:46 +00:00
web Flutter Web Bootstrapping Improvements (#144434) 2024-03-12 22:41:26 +00:00
pubspec.yaml Roll pub packages (#169865) 2025-06-02 16:13:02 +00:00
README.md [web] Remove HTML from bots, test suites and e2e tests (#161537) 2025-01-22 18:50:46 +00: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

This example runs the test in profile mode (--profile).

More resources: