• Srujan Gaddam's avatar
    Pin package:web 0.4.0 (#138428) · d8ffc739
    Srujan Gaddam authored
    This version is needed so that dart:js_interop can move to extension
    types. Also adds some code to handle some breaking changes:
    
    - Body -> Response. Body was an IDL interface mixin type we exposed in
    dart:html. Going forward, users should either use Request or Response.
    - Casts to JSAny. These are temporary until we move package:web types to
    extension types. Currently, package:web types can't implement JSObject
    as JSObject will move to be an extension type itself.
    Co-authored-by: 's avatarKevin Moore <kevmoo@users.noreply.github.com>
    d8ffc739
Name
Last commit
Last update
..
lib Loading commit data...
test_driver Loading commit data...
web Loading commit data...
README.md Loading commit data...
pubspec.yaml Loading commit data...

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: