- 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
28 lines
603 B
Makefile
28 lines
603 B
Makefile
.PHONY: help install codegen
|
|
|
|
## 📖 Show help
|
|
help:
|
|
@echo ""
|
|
@echo "🎭 playwright-recorder"
|
|
@echo ""
|
|
@echo "Targets:"
|
|
@echo " make install 🔧 Prepare the recorder (chmod +x)"
|
|
@echo " make codegen 🎥 Record Playwright tests via GUI"
|
|
@echo " make help 📖 Show this help"
|
|
@echo ""
|
|
|
|
## 🔧 One-time setup
|
|
install:
|
|
@chmod +x scripts/codegen.sh
|
|
@echo "✔ scripts/codegen.sh is now executable"
|
|
|
|
## 🎥 Run Playwright Codegen (GUI recording)
|
|
codegen:
|
|
bash scripts/codegen.sh
|
|
|
|
.PHONY: replay
|
|
|
|
## ▶ Replay recorded Playwright tests (headless)
|
|
replay:
|
|
bash scripts/replay.sh
|