Playwright - "Host system is missing dependencies to run browsers."
When setting up Playwright on Github Actions, I encountered an error:
Host system is missing dependencies to run browsers.
The issue seems to be related to running Safari, which is not provided by default on Ubuntu and other linux distros. A super quick fix is to simply add --with-deps
parameter to the npx playwright install-deps
command.
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright tests
run: pnpm run e2e
Published on August 2, 2024 • 1 min read