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.

[Question] npx playwright install necessary with docker images?

See original GitHub issue

I’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:closed
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
unlikelyzerocommented, May 24, 2022

@yury-s and @rwoll thanks again for taking a look at this. I was scratching my head for a while!

1reaction
yury-scommented, May 24, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

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