#!/bin/bash # Script de inicio rápido para testing con Playwright echo "🚀 Iniciando PLC Streamer Testing Suite" # Verificar que los servidores estén corriendo echo "🔍 Verificando servidores..." # Check frontend if curl -f http://localhost:5173 >/dev/null 2>&1; then echo "✅ Frontend (5173) running" else echo "❌ Frontend no está corriendo en puerto 5173" echo "💡 Ejecuta: cd ../frontend && npm run dev" fi # Check backend if curl -f http://localhost:5000/api/status >/dev/null 2>&1; then echo "✅ Backend (5000) running" else echo "❌ Backend no está corriendo en puerto 5000" echo "💡 Ejecuta: cd .. && python main.py" fi echo "🎬 Iniciando tests..." npm run test:headed