feat: add headless replay support for recorded Playwright tests

- add replay target to Makefile
- introduce scripts/replay.sh for headless test execution
- document replay workflow in README
- clarify requirements and Arch Linux setup

https://chatgpt.com/share/6984a4ca-1118-800f-88f9-1bd0146e922d
This commit is contained in:
2026-02-05 15:09:55 +01:00
parent a536fc435c
commit 5e9da6dc63
3 changed files with 139 additions and 3 deletions

View File

@@ -37,12 +37,18 @@ Perfect for:
### 1⃣ Requirements
* Docker
* X11 or XWayland (Wayland-only will NOT work)
* `xhost`
- Docker
- X11 or XWayland (Wayland-only will NOT work)
- `xhost`
On Arch Linux:
```bash
sudo pacman -S --needed xorg-xhost
```
---
## ⚙️ Installation (one-time)
Prepare the recorder script:
@@ -69,6 +75,24 @@ Or with a start URL:
---
## ▶ Replay recorded tests (headless)
Run all recorded tests:
```bash
make replay
```
Run a specific test file:
```bash
./scripts/replay.sh recordings/login.spec.ts
```
Replay runs **headless**, without X11, and does **not** require `xhost`.
---
## 📤 Output
* 📄 Generated test: