Playwright e2e-тесты в среде Nix
★ 7.5 · testing
nix-playwright is a Claude Code skill that enables running an existing Playwright e2e suite locally on NixOS and pure-Nix hosts, where the default `npx playwright install --with-deps` fails due to `apt-get` and `sudo` dependencies. It generates a self-contained `tests/shell.nix` that reads the parent flake's lock file to resolve a dedicated `nixpkgs-latest` pin and sets `PLAYWRIGHT_BROWSERS_PATH` to `playwright-driver.browsers`, skipping Playwright's own browser download entirely. A Justfile recipe is also added to invoke the suite via `nix-shell`. GitHub Actions CI is intentionally left unchanged — Ubuntu runners keep using the apt-provided Chromium path. A critical constraint: the `pkgs.playwright-driver` version must match the `playwright` version in `tests/package.json`; drift causes a "browser revision not found" error at launch. The pattern originates from emanote#660.
- #nix
- #playwright
- #e2e-testing
- #browser-automation
- #testing