Skip to content

Commit

Permalink
Fixed link to ChromeDriver
Browse files Browse the repository at this point in the history
  • Loading branch information
atsansone committed Jan 30, 2024
1 parent 651dfd9 commit 41f1ddf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/cookbook/testing/integration/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ of an application running on a real device. These tasks are performed
with *integration tests*.

Integration tests are written using the [integration_test][] package, provided
by the SDK.
by the SDK.

In this recipe, learn how to test a counter app. It demonstrates
how to setup integration tests, how to verify specific text is displayed
Expand Down Expand Up @@ -109,7 +109,7 @@ Next, use the `integration_test` and `flutter_test` packages
to write integration tests. Add these dependencies to the `dev_dependencies`
section of the app's `pubspec.yaml` file.

```console
```terminal
$ flutter pub add 'dev:flutter_test:{"sdk":"flutter"}' 'dev:integration_test:{"sdk":"flutter"}'
"flutter_test" is already in "dev_dependencies". Will try to update the constraint.
Resolving dependencies...
Expand Down Expand Up @@ -198,13 +198,13 @@ To test on a real iOS / Android device, first connect the device and run the
following command from the root of the project:

```terminal
flutter test integration_test/app_test.dart
$ flutter test integration_test/app_test.dart
```

Or, you can specify the directory to run all integration tests:

```terminal
flutter test integration_test
$ flutter test integration_test
```

This command runs the app and integration tests on the target device. For more
Expand Down Expand Up @@ -244,13 +244,13 @@ Future<void> main() => integrationDriver();
Launch `chromedriver` as follows:

```terminal
chromedriver --port=4444
$ chromedriver --port=4444
```

From the root of the project, run the following command:

```terminal
flutter drive \
$ flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/app_test.dart \
-d chrome
Expand All @@ -266,7 +266,7 @@ flutter drive \
-d web-server
```

[Download ChromeDriver]: https://chromedriver.chromium.org/downloads
[Download ChromeDriver]: https://googlechromelabs.github.io/chrome-for-testing/
[Download EdgeDriver]: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
[Download GeckoDriver]: {{site.github}}/mozilla/geckodriver/releases
[flutter_driver]: {{site.api}}/flutter/flutter_driver/flutter_driver-library.html
Expand Down

0 comments on commit 41f1ddf

Please sign in to comment.