-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[ci][web] Run integration tests in wasm. #8111
base: main
Are you sure you want to change the base?
Conversation
8a28941
to
d6bdc4f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are required, do not merge as is.
"--exclude=script/configs/exclude_integration_web_wasm.yaml" | ||
] | ||
|
||
# DO NOT PUSH THIS FILE! Temporarily changed to test --wasm without waiting for CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not push!
// Give the browser some time to perform DOM operations (for Wasm code) | ||
await tester.pump(const Duration(milliseconds: 500)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talk to @eyebrowsoffire about this new delay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed this, the skwasm renderer is now async, so it makes sense that there's some timing differences compared to the JS one. Needing this additional delay is probably caused by the tester
not being aware of this asynchronicity, and declaring a frame "pumped" before it's really been fully rendered.
packages/url_launcher/url_launcher_web/example/integration_test/link_widget_test.dart
Show resolved
Hide resolved
packages/video_player/video_player/example/integration_test/video_player_test.dart
Outdated
Show resolved
Hide resolved
…ion to test CI before it propagates.
… wasm in all_apps
… different entrypoint each time; I'm not sure prebuilding helps with anything other than pre-fetching deps (?)
420958b
to
598ed80
Compare
The only change to |
This PR runs the integration tests in web packages using Wasm.
(This should fail, because packages need a further migration review like this one)
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.