Open alexbjorlig opened 7 months ago
Hey @alexbjorlig we also faced this issue but for a different reason. Did you already try configuring PLAYWRIGHT_BROWSERS_PATH
to $HOME/.cache/ms-playwright
in your CI workflow in the step where you execute the test step?
I'm also running into this, it used to work but now it looks like the version the test runner is looking for doesn't match the version installed by the Playwright install command. Setting the env var didn't work for me unfortunately.
Playwright install command:
Chromium 124.0.6367.29 (playwright build v1112) downloaded to /home/runner/.cache/ms-playwright/chromium-1112
Storybook test job:
[test] [sb] Error: Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium-1097/chrome-linux/chrome
This is the CI job https://github.com/nerdyman/react-compare-slider/actions/runs/8573359817/job/23497910013?pr=139
I was able to resolve this by setting a fixed version for Playwright, matching the version installed by the test runner.
E.g. pnpm dlx playwright@1.41.1 install --with-deps
This is defs a workaround though, is there a way to get the test runner to play nice with the latest Playwright npx
commands?
I have the same issue. Also, it's hard to understand which version of chromium is included in the playwright versions. The release page doesn't help.
I expect the installation of test-runner
to install the browsers as well, but this doesn't seem to happen.
Error: Executable doesn't exist at /Users/user/Library/Caches/ms-playwright/chromium-1117/chrome-mac/Chromium.app/Contents/MacOS/Chromium
I can't get chromium-1117
with any pnpm dlx playwright@<version> install --with-deps
commands.
If I could configure the chromium version to be used via an env variable for test-storybook
, that would help.
I fixed it with
pnpm dlx playwright@latest install --with-deps
It looks like test-runner
looks for the latest playwright
build by default.
Yesterday it was looking for chromium-1115
, while today chromium-1117.
The version of test-runner
didn't change in the meantime.
How can I specify a chromium path when running test-storybook in CI on Github actions? It works locally 🙃
Describe the bug When I try to run my tests in Github Action CI with
test-storybook
I get this error:However I did actually run
npx playwright install
, and when running this line:I get: