diff --git a/openspec/specs/adsense-javascript-first/test-plan.md b/openspec/specs/adsense-javascript-first/test-plan.md index eaa7fa8b..f1f3c68a 100644 --- a/openspec/specs/adsense-javascript-first/test-plan.md +++ b/openspec/specs/adsense-javascript-first/test-plan.md @@ -16,6 +16,32 @@ --- +## Informacion del Servidor de Produccion + +| Campo | Valor | +|-------|-------| +| **Host SSH** | `VPSContabo` (alias en ~/.ssh/config) | +| **IP** | `5.189.136.96` | +| **Usuario** | `root` | +| **Ruta del tema** | `/var/www/preciosunitarios/public_html/wp-content/themes/roi-theme` | +| **URL produccion** | `https://analisisdepreciosunitarios.com` | +| **PHP Version** | 8.2 (php8.2-fpm) | + +### Comandos de Deploy + +```bash +# 1. Push desde local (sube a GitHub + Gitea automaticamente) +git push origin main + +# 2. Pull en produccion +ssh VPSContabo "cd /var/www/preciosunitarios/public_html/wp-content/themes/roi-theme && git pull origin main" + +# 3. Limpiar cache de OPcache (IMPORTANTE despues de deploy) +ssh VPSContabo "systemctl restart php8.2-fpm" +``` + +--- + ## Resumen de Pruebas | ID | Categoria | Descripcion | Criterio de Aceptacion | @@ -526,7 +552,37 @@ Antes de ejecutar las pruebas, verificar: | Fecha | Tester | Pruebas Ejecutadas | Pasadas | Fallidas | Notas | |-------|--------|-------------------|---------|----------|-------| -| | | | | | | +| 2025-12-11 | Claude | T01-T04, T13, T15-T16 | 7 | 0 | javascript_first_mode deshabilitado, pruebas T05-T12,T14 requieren habilitarlo | + +--- + +## Resultados de Pruebas (2025-12-11) + +### Pruebas Ejecutadas + +| ID | Resultado | Evidencia | +|----|-----------|-----------| +| T01 | ✅ PASA | HTTP 200, JSON: `{"show_ads":false,"reasons":["javascript_first_disabled"],"cache_seconds":600,"timestamp":...}` | +| T02 | ✅ PASA | Headers: `Cache-Control: no-store, no-cache, must-revalidate, max-age=0`, `pragma: no-cache`, `expires: Thu, 01 Jan 1970 00:00:00 GMT` | +| T03 | ✅ PASA | HTTP 400: `{"code":"rest_missing_callback_param","message":"Parametro(s) que falta(n): post_id"}` | +| T04 | ✅ PASA | HTTP 200 con post_id=0 | +| T13 | ✅ PASA | Modo legacy activo - roiAdsenseConfig tiene formato antiguo (lazyEnabled, rootMargin) sin endpoint/postId | +| T15 | ✅ PASA | grep en Domain/ no encuentra wp_, get_, is_user, WP_ | +| T16 | ✅ PASA | AdsenseVisibilityCheckerInterface.php existe en Domain/Contracts/ | + +### Pruebas Pendientes (requieren javascript_first_mode = true) + +| ID | Razon Pendiente | +|----|-----------------| +| T05 | Requiere deshabilitar componente completo | +| T06 | Requiere javascript_first_mode habilitado | +| T07 | Requiere javascript_first_mode + hide_for_logged_in | +| T08 | Requiere javascript_first_mode + roles excluidos | +| T09 | Requiere javascript_first_mode + post excluido | +| T10 | Requiere javascript_first_mode habilitado | +| T11 | Requiere javascript_first_mode habilitado | +| T12 | Requiere javascript_first_mode habilitado | +| T14 | Requiere javascript_first_mode habilitado | --- @@ -534,7 +590,7 @@ Antes de ejecutar las pruebas, verificar: | ID | Prueba | Descripcion | Severidad | Estado | Correccion | |----|--------|-------------|-----------|--------|------------| -| | | | | | | +| - | - | Sin defectos encontrados | - | - | - | --- @@ -543,3 +599,4 @@ Antes de ejecutar las pruebas, verificar: | Version | Fecha | Cambios | |---------|-------|---------| | 1.0 | 2025-12-11 | Plan inicial basado en spec v1.5 | +| 1.1 | 2025-12-11 | Agregada info servidor produccion, resultados primera ronda de pruebas |