fix(playwright): install chromium-headless-shell for headless runs
Some checks failed
CI / test (push) Has been cancelled

Playwright v1.46 expects the separate chromium_headless_shell binary in
headless mode. Install chromium-headless-shell alongside chromium in both
the Makefile and Nix flake installer to prevent ENOENT launch errors.

https://chatgpt.com/share/694ae842-1588-800f-9418-31e7d02ac45e
This commit is contained in:
Kevin Veen-Birkenbach
2025-12-23 20:06:30 +01:00
parent 8162d337b5
commit e38051a92f
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@
text = ''
# Install Playwright browsers.
# IMPORTANT: Do not print anything to stdout (tests expect token-only stdout).
exec ${pythonPlaywright}/bin/python -m playwright install chromium 1>&2
exec ${pythonPlaywright}/bin/python -m playwright install chromium chromium-headless-shell 1>&2
'';
};
in