-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[webview_flutter_web] Migrate integration tests to package:web. #7115
base: main
Are you sure you want to change the base?
Conversation
Now the non-legacy test should actually do something in CI. The legacy one is only left as a manual check. No coverage is lost, since neither of the tests were actually verifying anything earlier (the bug that is being fixed here should have been caught by a functional legacy test!) This should also ease the |
Nah, this is still flaking :/ |
$ flutter --version
Flutter 3.22.2 • channel stable • git@github.com:flutter/flutter.git
Framework • revision 761747bfc5 (5 weeks ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
$ flutter clean; run_integration_test.sh | ts -s
00:00:03
00:00:03 ============================================================
00:00:03 || Running for packages/webview_flutter/webview_flutter_web
00:00:03 ============================================================
00:00:03
00:00:03 Starting chromedriver on port 4444
00:00:03 Running command: "flutter drive -d web-server --web-port=7357 --browser-name=chrome --web-renderer=canvaskit --driver test_driver/integration_test.dart --target integration_test/webview_flutter_test.dart" in /work/flutter/packages/packages/webview_flutter/webview_flutter_web/example
00:00:03 Resolving dependencies...
00:00:04 Downloading packages...
00:00:04 collection 1.18.0 (1.19.0 available)
00:00:04 leak_tracker 10.0.4 (10.0.5 available)
00:00:04 leak_tracker_flutter_testing 3.0.3 (3.0.5 available)
00:00:04 material_color_utilities 0.8.0 (0.12.0 available)
00:00:04 meta 1.12.0 (1.15.0 available)
00:00:04 platform 3.1.4 (3.1.5 available)
00:00:04 string_scanner 1.2.0 (1.3.0 available)
00:00:04 test_api 0.7.0 (0.7.3 available)
00:00:04 vm_service 14.2.1 (14.2.4 available)
00:00:04 Got dependencies!
00:00:04 9 packages have newer versions incompatible with dependency constraints.
00:00:04 Try `flutter pub outdated` for more information.
00:00:04 Launching integration_test/webview_flutter_test.dart on Web Server in debug mode...
00:00:31 Waiting for connection from debug service on Web Server... 26.3s
00:00:31 integration_test/webview_flutter_test.dart is being served at http://localhost:7357
00:00:31 The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or Edge devices for an improved development workflow.
00:00:38 All tests passed.
00:00:38 Application finished.
00:00:39 Stopping chromedriver
00:00:39
00:00:39
00:00:39 ------------------------------------------------------------
00:00:39 Run overview:
00:00:39 packages/webview_flutter/webview_flutter_web - ran
00:00:39
00:00:39 Ran for 1 package(s)
00:00:39
00:00:39
00:00:39 No issues found! vs CI. 🤷 |
It probably does, but we can't use that mode, because |
This PR:
integration_tests
for the package less flaky, now that they seem to be timing out unexpectedly in CI.Issues
Linux_web web_platform_tests_shard_3 stable
)Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style, or this PR is exempt from CHANGELOG changes.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.