2026-02-05 14:56:46 +01:00
|
|
|
.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
|
2026-02-05 15:09:55 +01:00
|
|
|
|
|
|
|
|
.PHONY: replay
|
|
|
|
|
|
|
|
|
|
## ▶ Replay recorded Playwright tests (headless)
|
|
|
|
|
replay:
|
|
|
|
|
bash scripts/replay.sh
|