-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[ci] Run web tests in wasm (unit + integration). #8111
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
Changes from 30 commits
a1d0b38
9f4cd1f
b518877
0f80fcb
1542405
1685463
b56ac8d
c510654
bcd7f6f
01a9321
6b01a26
be17b43
9c10258
8bb9e64
18674b3
598ed80
630bfe6
dc40e4d
67d7897
b579c4e
9afe55e
54606d0
00a67f7
6bd249e
13ca07c
c04f01b
6324f8d
d9a8aa3
70d4de8
5ade435
6660cfb
fcaff2a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| tasks: | ||
| - name: prepare tool | ||
| script: .ci/scripts/prepare_tool.sh | ||
| infra_step: true # Note infra steps failing prevents "always" from running. | ||
| - name: Dart unit tests - web (wasm) | ||
| script: .ci/scripts/tool_runner.sh | ||
| args: [ | ||
| "dart-test", | ||
| "--platform=chrome", | ||
| "--wasm", | ||
| "--exclude=script/configs/dart_unit_tests_exceptions.yaml", | ||
| "--exclude=script/configs/dart_unit_tests_wasm_exceptions.yaml" | ||
| ] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| tasks: | ||
| - name: prepare tool | ||
| script: .ci/scripts/prepare_tool.sh | ||
| infra_step: true # Note infra steps failing prevents "always" from running. | ||
| - name: download Dart deps | ||
| script: .ci/scripts/tool_runner.sh | ||
| args: ["fetch-deps", "--web", "--supporting-target-platforms-only"] | ||
| infra_step: true | ||
| - name: drive examples | ||
| script: .ci/scripts/tool_runner.sh | ||
| args: [ | ||
| "drive-examples", | ||
| "--web", | ||
| "--wasm", | ||
| "--run-chromedriver", | ||
| "--exclude=script/configs/exclude_integration_web.yaml", | ||
| "--exclude=script/configs/exclude_integration_web_wasm.yaml" | ||
| ] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,7 +70,8 @@ Future<void> _fullyRenderApp(WidgetTester tester) async { | |
| await tester.pumpWidget(const app.MyApp()); | ||
| // Pump 2 frames so the framework injects the platform view into the DOM. | ||
| await tester.pump(); | ||
| await tester.pump(); | ||
| // Give the browser some time to perform DOM operations (for Wasm code) | ||
| await tester.pump(const Duration(milliseconds: 500)); | ||
|
||
| } | ||
|
|
||
| // Calls [_getHtmlElementAt] passing it the center of the widget identified by | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.