[Question] npx playwright install necessary with docker images?
See original GitHub issueIβm attempting to speed up my circleci runs and am using the playwright focal images. If I donβt perform a npx playwright install step, the run will fail. Hereβs a recent example
CircleCI Config: https://github.com/nasa/openmct/commit/c56fe6d8f34191e7de45db75e14459344adbd5d4
The circleci configβs playwright base image version matches the package.json playwright/test version of 1.21.1
Spin Up Environment step
Build-agent version 1.0.124340-e0f27245 (2022-05-23T16:04:14+0000)
System information:
Server Version: 20.10.16
Storage Driver: overlay2
Backing Filesystem: xfs
Cgroup Driver: cgroupfs
Cgroup Version: 1
Kernel Version: 5.13.0-1023-aws
Operating System: Ubuntu 20.04.4 LTS
OSType: linux
Architecture: x86_64
Starting container mcr.microsoft.com/playwright:v1.21.1-focal
mcr.microsoft.com/playwright:v1.21.1-focal:
using image mcr.microsoft.com/playwright@sha256:c3c8a833254aaad31b2d336e67b0dbb9af744a12ab486e18f230033b99649c4f
pull stats: Image was already available so the image was not pulled
time to create container: 6ms
image is cached as mcr.microsoft.com/playwright:v1.21.1-focal, but refreshing...
v1.21.1-focal: Pulling from playwright
Digest: sha256:c3c8a833254aaad31b2d336e67b0dbb9af744a12ab486e18f230033b99649c4f
Status: Image is up to date for mcr.microsoft.com/playwright:v1.21.1-focal
Time to upload agent and config: 339.235221ms
Time to start containers: 378.141847ms
npm run test step
1) [chrome] βΊ branding.e2e.spec.js:31:5 βΊ Branding tests βΊ About Modal launches with basic branding properties
browserType.launch: Executable doesn't exist at /ms-playwright/chromium-1000/chrome-linux/chrome
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Looks like Playwright Test or Playwright was just installed or updated. β
β Please run the following command to download new browsers: β
β β
β npx playwright install β
β β
β <3 Playwright Team
Issue Analytics
- State:
- Created a year ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Cannot run PlayWright inside docker image - Stack Overflow
Even though my dockerfile contains RUN npx playwright install seems like its not installing it. When I will remove it from my dockerfile...
Read more >How To Run End-to-End Tests Using Playwright and Docker
In this tutorial, you will set up an environment to use Playwright with Typescript for end-to-end testing, write and execute the tests,Β ...
Read more >Continuous Integration | Playwright - CukeTest
3 steps to get your tests running on CI: Ensure CI agent can run browsers: Use our Docker image in Linux agents or...
Read more >Microsoft Playwright - Execution using Docker container and ...
Microsoft Playwright - Execution using Docker container and GitHub Actions by Ganesh Deenadayalan. 59 views 2 weeks ago.
Read more >How to run Playwright in a Dockerized Node Azure Functions ...
1 Answer Β· FROM mcr.microsoft.com/azure-functions/node:3.0 Β· # Add Playwright Β· ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright Β· # 1. Add tip-of-treeΒ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@yury-s and @rwoll thanks again for taking a look at this. I was scratching my head for a while!
Iβm closing this bug as there is nothing else we can do on our end. Iβve sent a PR to the Rercy repo so they should be aware of the issue.