Skip to content

Commit 7df7577

Browse files
committed
Add to e2e readme
1 parent e69e777 commit 7df7577

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
devShell = pkgs.mkShell {
9191
buildInputs = devShellPackages;
9292
shellHook = ''
93-
echo "Welcome to the development environment!"
93+
echo "Welcome to the nix shell development environment!"
9494
export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}
9595
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
9696
'';

site/e2e/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,18 @@ pnpm playwright:test
2020
# Run a specific test (`-g` stands for grep. It accepts regex).
2121
pnpm playwright:test -g '<your test here>'
2222
```
23+
24+
25+
# Using nix
26+
27+
If this breaks, it is likely because the flake chromium version and playwright
28+
are no longer compatible. To fix this, update the flake to get the latest
29+
chromium version, and adjust the playwright version in the package.json.
30+
31+
```shell
32+
# Optionally add '--command zsh' to choose your shell.
33+
nix develop
34+
cd site
35+
pnpm build
36+
pnpm playwright:test
37+
```

0 commit comments

Comments
 (0)