Skip to content
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

fix(test-runner-puppeteer): add createBrowserContext #2587

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dgp1130
Copy link
Contributor

@dgp1130 dgp1130 commented Dec 25, 2023

What I did

While debugging a requestAnimationFrame issue (bug coming soon) I discovered that Puppeteer's createBrowserContext function is not implemented despite being clearly documented as supported. I added this function and passed it through to Puppeteer, which seems to be sufficient for it to be used correctly.

It doesn't look like the existing tests exercise puppeteerLauncher options, so I didn't add a test here, however in my local testing this function does appear to be called correctly with both the config and browser and the result is correctly used. I was able to switch Web Test Runner to use an incognito browser with this function.

I opted to call this a "fix" because the option is documented to work. However I can also see an argument that this is really a "feature". I'm happy to change that if we feel it is more appropriate.

Copy link

changeset-bot bot commented Dec 25, 2023

🦋 Changeset detected

Latest commit: e5551a9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@web/test-runner-puppeteer Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

None yet

1 participant