From e38051a92f3c58164dcae1aba6cd5ae2ac27c3b9 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 23 Dec 2025 20:06:30 +0100 Subject: [PATCH] fix(playwright): install chromium-headless-shell for headless runs 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 --- Makefile | 2 +- flake.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5a805f1..202f8ea 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ deps-e2e: venv @$(VENV_PIP) install -e ".[e2e]" playwright-install: deps-e2e - @$(VENV_PY) -m playwright install chromium + @$(VENV_PY) -m playwright install chromium chromium-headless-shell e2e-up: $(COMPOSE) up -d diff --git a/flake.nix b/flake.nix index 2cce22a..b65f146 100644 --- a/flake.nix +++ b/flake.nix @@ -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