Webkit not found #29912
-
Hello, I can't run the tests in webkit in a docker container running Debian 12. When I try `npm cypress run --browser=/ i get the error I added the In the Docker file I am getting playwright webkit 1.37. In the Cypress docs it says to download 1.34 but that playwright version doesn't support Debian 12. In the Docker image I'm installing a missing dependency that the binary expects but isn't downloaded already. Then I'm creating a symlink for a library that it expects but which exact version I can't get. And I add the paths where the playwright webkit installation includes libraries to the environment variable LD_LIBRARY_PATH.
It works on Mac with the open option. And I installed playwright on the container and ran an e2e test using webkit with it. So the binary should be ok. I also tried different other commands to launch Cypress with webkit: I added the binary path to the PATH variable export PATH=$PATH: I also tried to add webkit to the browsers array in cypress.config.ts If you have any idea what I could try, please let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
The fix was to add playwright-webkit to package.json as dependency but then tell yarn that we already have the binary through an environment variable to not download it again from the internet. |
Beta Was this translation helpful? Give feedback.
-
This question was also asked in Discord. I posted the following steps to demonstrate usage in a Cypress Docker container: git clone https://github.com/MikeMcC399/github-action --branch webkit
cd github-action/examples/webkit
npm ci
docker run -it --rm -v .:/e2e -w /e2e cypress/base unset CI
npx playwright install-deps webkit
npx playwright install
npx cypress install
npx cypress run --browser webkit |
Beta Was this translation helpful? Give feedback.
-
Thanks for your comment about Debian 12 compatibility!
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
This question was also asked in Discord. I posted the following steps to demonstrate usage in a Cypress Docker container:
git clone https://github.com/MikeMcC399/github-action --branch webkit cd github-action/examples/webkit npm ci docker run -it --rm -v .:/e2e -w /e2e cypress/base
unset CI npx playwright install-deps webkit npx playwright install npx cypress install npx cypress run --browser webkit