webview_flutter fails to load in android integration tests

This issue has been tracked since 2023-03-17.

Steps to Reproduce

  1. Create an application that uses the webview_flutter package
  2. Write an integration test that navigates to a screen using the WebViewWidget
  3. Run the integration test on an Android Emulator

Expected results: The WebViewWidget loads, even if integration_test isn't able to interact with it.

Actual results: Nothing. The WebViewWidget presents as a blank white widget.

While not a minimal example, the datadog_webview_tracking package integration test is loading a WebView to ensure events get forwarded to the mobile app properly. It doesn't need to interact with the Web view itself.

https://github.com/DataDog/dd-sdk-flutter/tree/develop/packages/datadog_webview_tracking

Flutter Doctor

Flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, 3.7.6, on macOS 13.2.1 22D68 darwin-arm64, locale en-US)
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/2.18.7/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/jeff.ward/Projects/flutter.
      Consider adding /Users/jeff.ward/Projects/flutter/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.76.2)
[✓] Connected device (4 available)
[✓] HTTP Host Availability

! Doctor found issues in 1 category.
More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2023-03-30
Star Count 151602
Watcher Count 3555
Fork Count 25000
Issue Count 11498

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date