Coder Social home page Coder Social logo

Comments (3)

mxschmitt avatar mxschmitt commented on July 23, 2024

As of today this is intentional, since different package managers install playwright in different locations. It's often not only about playwright-core, its also about @playwright/test. Most of the end-to-end testing projects we've seen depend on third-party libraries as well - so it wouldn't be beneficial for them. So "npm ci" is usually the way to go.

from playwright.

VaasRamsay avatar VaasRamsay commented on July 23, 2024

My project uses TestContainers to orchestrate all dependencies for tests. So every test will spin up the needed containers, which includes the Playwright container as well. It's a big overhead to run npm ci during container startup, as it's done for every single startup.

from playwright.

mxschmitt avatar mxschmitt commented on July 23, 2024

I'm not familiar with Testcontainers. Usually installing Playwright takes 2-4 seconds via NPM, since the browsers/OS dependencies are already satisfied in the Docker container. Would you like to reduce this to 0?

Looks like they have no official support for Playwright yet? testcontainers/testcontainers-dotnet#1033 so maybe they will address it there,

There is a PR which was closed: testcontainers/testcontainers-node#726.

from playwright.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.