Resumen de ejecución
107
Tests pasados
9
Tests fallados
4
Saltados
120
Total publicados
Pipeline de sincronización
✓
1 — Importar casos desde TestRail
/pw:testrail import --project 12 --suite 34
// auth.spec.ts — generado automáticamente desde TestRail
import { test, expect } from '@playwright/test';
test('Login con credenciales válidas', async ({ page }) => {
test.info().annotations.push({
type: 'testrail', description: 'C1001'
});
await page.goto('/login');
await page.fill('[name=email]', 'admin@fincas360.com');
await page.fill('[name=password]', 'Secure123!');
await page.click('button[type=submit]');
await expect(page).toHaveURL('/dashboard');
});
test('Login con contraseña incorrecta → mensaje de error', async ({ page }) => {
test.info().annotations.push({
type: 'testrail', description: 'C1002'
});
await page.goto('/login');
await page.fill('[name=email]', 'admin@fincas360.com');
await page.fill('[name=password]', 'WrongPass!');
await page.click('button[type=submit]');
await expect(page.locator('.error-msg')).toBeVisible();
});
✓
2 — Crear Test Run en TestRail
/pw:testrail run --project 12 --name "Sprint 18 – Regression"
09:14:02testrail_add_run → 201 Created
09:14:02run_id=2847 name="Sprint 18 – Regression" case_ids=[1001..1051] count=120
09:14:02✓ Run creado: https://fincas360.testrail.io/index.php?/runs/view/2847
✓
3 — Ejecutar Playwright + JSON reporter
npx playwright test --reporter=json > test-results.json
09:15:10Running 120 tests using 4 workers
09:19:48107 passed 9 failed 4 skipped
09:19:48Saved: test-results.json (284 KB)
✓
4 — Publicar resultados → TestRail
/pw:testrail push --run 2847
09:19:50Parsing test-results.json...
09:19:50Mapped 120 tests to TestRail case IDs
09:19:51Pushing results to run #2847...
09:19:58✓ 107 results → status_id=1 (Pass)
09:19:58✗ 9 results → status_id=5 (Fail)
09:19:58⚠4 results → status_id=2 (Skip)
09:19:58All 120 results published. No API errors.
09:19:58→ https://fincas360.testrail.io/index.php?/runs/view/2847
!
5 — Estado de cobertura
/pw:testrail status --project 12
09:20:00TestRail cases total: 150
09:20:00Playwright tests with C-ID: 120 (80%)
09:20:00Unlinked TestRail cases: 30
09:20:00Playwright tests without C-ID: 15
09:20:00Coverage target: 90% — delta: +10 tests needed
Detalle de resultados (muestra)
| Case ID | Nombre del test | Sección | Estado | Duración | Detalle |
|---|---|---|---|---|---|
| C1001 | Login con credenciales válidas | Autenticación | Pass | 1.24s | — |
| C1002 | Login con contraseña incorrecta | Autenticación | Pass | 0.98s | — |
| C1003 | Recuperación de contraseña por email | Autenticación | Pass | 2.11s | — |
| C1010 | Crear nueva comunidad de propietarios | Comunidades | Pass | 3.42s | — |
| C1011 | Editar datos de comunidad existente | Comunidades | Fail | 5.03s | expect(locator).toHaveValue() → "Comunidad ABC" vs "" |
| C1012 | Archivar comunidad (soft-delete) | Comunidades | Pass | 1.87s | — |
| C1020 | Subir acta de junta en PDF | Documentos | Fail | 8.19s | Timeout 8000ms exceeded waiting for upload confirmation |
| C1021 | Descarga de documentos desde el panel | Documentos | Pass | 2.34s | — |
| C1030 | Generar informe de gastos en CSV | Informes | Pass | 4.56s | — |
| C1031 | Filtrar gastos por categorÃa y fecha | Informes | Pass | 3.12s | — |
| C1040 | EnvÃo de notificación a propietarios | Notificaciones | Fail | 6.77s | expect(page.locator('.toast-success')).toBeVisible() → 0 elements |
| C1041 | Propietario recibe email al aprobarse gasto | Notificaciones | Skip | — | Requires SMTP mock — pendiente |
| C1050 | Dashboard KPI — carga en < 2 s | Performance | Pass | 1.74s | — |
| C1051 | Responsive en móvil 375 px | Performance | Pass | 2.03s | — |
Cobertura global
120 / 150 casos cubiertos
80%
Autenticación
100%
Comunidades
100%
Documentos
90%
Informes
85%
Notificaciones
70%
Pagos / Cuotas
60%
Admin / Config
45%
Fallos a investigar (9)
C1011 — Editar comunidad
Communidades
Input field vacÃo tras re-render — posible race condition
C1020 — Subir PDF
Documentos
Upload timeout 8 s — revisar endpoint /api/documents/upload
C1040 — Notificación masiva
Notificaciones
Toast success no renderiza — posible bug en estado React
+ 6 fallos adicionales en secciones Pagos (C1060, C1061, C1062) y Admin (C1070, C1071, C1072)
Archivos generados
Tests Playwright generados
tests/e2e/
auth.spec.ts 3 tests · C1001 C1002 C1003
comunidades.spec.ts 3 tests · C1010 C1011 C1012
documentos.spec.ts 2 tests · C1020 C1021
informes.spec.ts 2 tests · C1030 C1031
notificaciones.spec.ts 2 tests · C1040 C1041*
performance.spec.ts 2 tests · C1050 C1051
pagos.spec.ts 18 tests · C1060–C1077
admin.spec.ts 22 tests · C1080–C1101
... 8 more files
* C1041 marcado skip (SMTP mock pendiente)
Próximas acciones recomendadas
P1
Investigar C1020 — timeout en upload PDF (entorno CI sin S3 mock)
P1
Fix C1040 — Toast success: revisar dispatch de action Redux
P2
Añadir SMTP mock (mailhog) para habilitar C1041 y similares
P2
Cubrir 30 casos sin test: secciones Admin y Pagos avanzados
P3
Anotar 15 tests sin C-ID con /pw:testrail update --case <id>
P3
Objetivo Sprint 19: cobertura 90% (+10 tests linked)