d04a309313
Proyecto Node.js independiente en e2e/ con Playwright + Chromium headless. Incluye setup-element.sh para descargar y servir Element Web localmente (puerto 8090 por defecto, 8080 ocupado por Docker). Scripts de instalacion y placeholder para ejecucion de tests. Cierra issue 0022a. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
756 B
Bash
Executable File
27 lines
756 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# run.sh — ejecutar E2E tests con Playwright
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
E2E_DIR="$REPO_ROOT/e2e"
|
|
|
|
# Verificar dependencias instaladas
|
|
if [ ! -d "$E2E_DIR/node_modules" ]; then
|
|
echo "ERROR: node_modules no encontrado. Ejecutar primero:"
|
|
echo " ./dev-scripts/e2e/install.sh"
|
|
exit 1
|
|
fi
|
|
|
|
# Verificar .env
|
|
if [ ! -f "$E2E_DIR/.env" ]; then
|
|
echo "ERROR: e2e/.env no encontrado. Crear desde el template:"
|
|
echo " cp e2e/.env.example e2e/.env"
|
|
echo " # editar e2e/.env con credenciales"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Los tests E2E se agregan en el issue 0022c."
|
|
echo "Cuando esten listos, ejecutar:"
|
|
echo " cd $E2E_DIR && npx playwright test"
|