.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
