Skip to content

Conversation

@grouma
Copy link
Member

@grouma grouma commented Aug 11, 2020

The can not launch devtools for the same app in multiple tabs test appears to be flaky because we attempt to launch DevTools before the page is fully loaded. There isn't a good asynchronous signal for this so as an alternative we wait for the page content to say Hello World!. This closes #1084.

@grouma grouma requested a review from jakemac53 August 11, 2020 23:12
alert = context.webDriver.driver.switchTo.alert;
break;
} catch (_) {}
await Future.delayed(const Duration(seconds: 2));
Copy link
Contributor

Choose a reason for hiding this comment

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

lets reduce this delay to like 100ms and increase the number of attempts to speed up the test

Copy link
Contributor

@jakemac53 jakemac53 left a comment

Choose a reason for hiding this comment

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

lgtm with the one nit

@grouma grouma merged commit 117d6e8 into master Aug 12, 2020
@grouma grouma deleted the test-flake branch August 12, 2020 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't use arbitrary awaits in devtools_test

3 participants