Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[webview_flutter] Test: wait for page to load before checking the content #1535

Merged
merged 6 commits into from
Apr 23, 2019
Merged

[webview_flutter] Test: wait for page to load before checking the content #1535

merged 6 commits into from
Apr 23, 2019

Conversation

iskakaushik
Copy link
Contributor

flutter/flutter#31510 seems to exist. Using it to make the header loading test not flake

@@ -70,6 +71,11 @@ void main() {
controllerCompleter.complete(controller);
},
javascriptMode: JavascriptMode.unrestricted,
onPageFinished: (String url) {
if (url.contains('flutter-header-echo')) {
headerEchoCompleter.complete(url);
Copy link
Contributor

@collinjackson collinjackson Apr 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should make it a streamcontroller instead of a completer

@collinjackson collinjackson self-requested a review April 23, 2019 20:28
Copy link
Contributor

@collinjackson collinjackson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! thanks

@collinjackson
Copy link
Contributor

Let's remove the skip from the test and release as a new version if the bots are happy

@iskakaushik iskakaushik requested a review from amirh as a code owner April 23, 2019 20:32
@iskakaushik iskakaushik merged commit a87d2b8 into flutter:master Apr 23, 2019
julianscheel pushed a commit to jusst-engineering/plugins that referenced this pull request Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants