Skip to content

Conversation

elliette
Copy link
Contributor

@elliette elliette commented Dec 3, 2022

The Worker type is now visible in package:puppeteer (xvrh/puppeteer-dart#198)

This PR refactors to the Puppeteer tests to remove some code duplication now that we have access to the Worker type.

Copy link
Contributor

@annagrin annagrin 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 a question.


// Note: The following delay is required to reduce flakiness. It makes
// sure the service worker execution context is ready.
Future<void> workerEvalDelay() async {
Copy link
Contributor

Choose a reason for hiding this comment

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

A question - is there a way to detect when the extension is ready, so we can avoid potentially waiting too little?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately not! Same answer as #1791 (comment), I haven't found a way to determine whether or not this will flake. We could add retry logic and add the delay before the retry

@elliette elliette merged commit d3892cf into dart-lang:master Dec 5, 2022
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.

2 participants