question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

don't download all of the browsers

See original GitHub issue

We should have a good story using playwright-core to not download any browsers on install, but get them just-in-time when the user wants to run tests in them.

This isn’t trivial because it also has to work on CI, where people expect all of their dependencies to install on npm install, and then they cache their node modules folder and send it to a computer with no network access. But maybe we can make this the edge case solved via environment flags?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
mxschmittcommented, Apr 23, 2020

On jest-playwright we solved it by using:

return require(`playwright-${playwrightPackage}`)[playwrightPackage]

If any of the playwright-{browserType} was persistent in the package.json of the project.

So the user in the end has to install playwright-runner + playwright-chromium e.g.

0reactions
pavelfeldmancommented, Jun 14, 2021

test runner no longer downloads the browsers: https://playwright.dev/docs/next/test-intro

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't download anything from any browser on Win 10
I just noticed this yesterday. I tried saving an image from a website on google chrome and nothing happened. I've tried downloading files ......
Read more >
Prevent users from downloading harmful files - Chrome ...
Step 1: Review the policy · 3—Blocks all downloads. Not recommended, except for special use cases. · 4—Recommended. Blocks files flagged as DANGEROUS, ......
Read more >
Cannot download a file from the Internet? Do this!
1] Check your Internet connection · 2] Clear browser cache · 3] Choose a different download location · 4] Change file name or...
Read more >
13 Fixes to Try If You Can't Download on Windows 11
When the downloads are not working, start by checking if you can do that with external programs. · Another great idea is to...
Read more >
File will not download from the Support site when using ... - Sony
We are working on a resolution but in the meantime, please use a different browser such as Firefox®, Safari®, or Microsoft Edge to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found