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:
30
README.md
30
README.md
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user