SprilurTests Evaluation

Autoguardat d'una resposta de fitxa

Editar
/

Test validat correctament

L'script s'ha executat i ha passat després de 0 iteracions de refinament.

La IA ajustarà l'script segons el teu feedback i el validarà automàticament.

Prompt

Inicia sessió amb admin@sprilur.test i password. Accedeix a l'avaluació d'un projecte obert i selecciona una resposta en qualsevol fitxa disponible. Espera uns segons i verifica que la resposta s'ha guardat automàticament sense necessitat de prémer cap botó. Comprova que el percentatge de progrés i la puntuació total s'actualitzen a la interfície sense que la pàgina es recarregui.

Pla de Test 4 pag · 15 passos · 7 validacions

Pàgines a visitar

/login Login form with email and password fields for credential-based authentication
/dashboard Project list showing open projects with Resultados, Evaluación, and Editar datos links
/es/projects/7/evaluate Project evaluation page: chapter sidebar nav with progress percentages and fichas per chapter
/es/projects/7/evaluate/5 AGU chapter: each ficha has Aplicabilidad radio group, response options, Cuantificación scores panel, Notas textbox, and a Reiniciar button

Passos del test

Validacions

After login, the dashboard heading 'Mis proyectos' is visible confirming successful authentication h1
The Reiniciar confirmation dialog appears with a warning message after clicking the trigger button [role='dialog']
After Reiniciar, the AGU 2 response radio is unchecked (no response selected) input[name='exclusive_10']:not(:checked)
After selecting the response, the radio is checked — confirming the reactive UI updated without page reload input[name='exclusive_10']:checked
The chapter progress percentage is displayed in the AGU sidebar link (span with text-xs class) a[href*='/evaluate/5'] span.text-xs
The Cuantificación scores panel for AGU 2 is visible and contains score values article:nth-of-type(2) aside
After navigating away and back, the response radio for AGU 2 is still checked — auto-save persisted the selection to the server input[name='exclusive_10']:checked

Historial de validació 1 iteracions

#? FAIL

Passos del Test 6 steps

1

Admin Login to Sprilur Dashboard

Navigates to the Sprilur login page, fills in admin credentials (admin@sprilur.test/password), submits the form, and captures the dashboard after successful login

not_validated (4x)
step3779-login-page

step3779 login page

step3779-dashboard-projects

step3779 dashboard projects

1. navigate Navigate to the Sprilur login page
2. fill Enter the admin email address #login-email
3. fill Enter the admin password #login-password
4. click Submit the login form by clicking the Entrar button button[type='submit']
5. screenshot Capture the dashboard after successful login
Generació inicial FAIL
#1 FAIL pas 4 · refine
El selector coincideix amb més d'un element — cal afinar-lo perquè sigui únic.
locator.click: Error: strict mode violation: locator('button[type="submit"]') resolved to 2 elements: 1) <button typ... [veure tot] locator.click: Error: strict mode violation: locator('button[type="submit"]') resolved to 2 elements: 1) <button type="submit" class="inline-flex border-2 border-[#c8102e] px-7 py-3 text-sm font-bold uppercase tracking-wide text-zinc-700 transition hover:bg-[#c8102e] hover:text-white">↵ Entrar↵ </button> aka getByRole('button', { name: 'Entrar' }) 2) <button type="submit" class="inline-flex border-2 border-[#c8102e] px-7 py-3 text-sm font-bold uppercase tracking-wide text-zinc-700 transition hover:bg-[#c8102e] hover:text-white">↵ Registrarse↵ </button> aka getByRole('button', { name: 'Registrarse' }) Call log: - waiting for locator('button[type="submit"]')
2

Click Evaluación link on first project

Clicks the Evaluación link on the first project in the dashboard to enter evaluation mode

not_validated (4x)
step3780-project-evaluation

step3780 project evaluation

6. click Click the Evaluación link on the first open project (test1) to enter evaluation mode article:first-of-type a[href$='/evaluate']
Generació inicial FAIL
#2 FAIL pas 6 · refine
Temps d'espera exhaurit — l'element no es va trobar o la pàgina no va acabar de carregar.
locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('article:first-of-type a[href$="/evaluate"]')... [veure tot] locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('article:first-of-type a[href$="/evaluate"]')
#3 FAIL pas 6 · regenerate
Temps d'espera exhaurit — l'element no es va trobar o la pàgina no va acabar de carregar.
locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('a[href="/es/projects/2/evaluate"]') [veure tot] locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('a[href="/es/projects/2/evaluate"]')
3

Reset AGU 2 ficha evaluation

Clicks the reset button on the second ficha (AGU 2), confirms the reset in the dialog, and captures the reset state showing unchecked responses and 0.0 scores

stable (5x)
step3781-evaluation-ficha-initial

step3781 evaluation ficha initial

7. click Click the Reiniciar trigger button on the second ficha (AGU 2) to open the reset confirmation dialog article:nth-of-type(2) button.text-zinc-400
8. click Confirm the reset by clicking Reiniciar inside the inline confirmation dialog [role='dialog'] button:last-of-type
9. screenshot Capture the ficha after reset: response radio unchecked, scores all at 0.0
Generació inicial FAIL
#4 FAIL pas 7 · regenerate
Temps d'espera exhaurit — l'element no es va trobar o la pàgina no va acabar de carregar.
locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('article:nth-of-type(2) button.text-zinc-400'... [veure tot] locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('article:nth-of-type(2) button.text-zinc-400')
Prova 1 (05/06 08:37) PASS Vídeo
#F1 PASS
4

Select partial implementation response for AGU 2 ficha

Selects the partial implementation response option for the AGU 2 ficha evaluation and captures the immediate score update, then waits for auto-save

stable (1x)
step3782-evaluation-ficha-response-selected

step3782 evaluation ficha response selected

10. click Select the response 'La medida se incorpora parcialmente y requiere seguimiento' for the AGU 2 ficha input[name='exclusive_10']
11. screenshot Capture the ficha immediately after selection — scores must update without any page reload
12. wait Wait 3 seconds for the auto-save AJAX request to POST /cards/10/autosave and receive 200 OK
Prova 1 (05/06 08:37) PASS Vídeo
#C1 PASS
5

Navigate to dashboard

Navigates away from the evaluation page to the dashboard to simulate leaving the page and test auto-save persistence

stable (1x)
step3783-dashboard-after-navigation

step3783 dashboard after navigation

13. navigate Navigate away to the dashboard to simulate leaving the page
Prova 1 (05/06 08:38) PASS Vídeo
#C1 PASS
6

Navigate back to evaluation and verify persistence

Navigate back to the evaluation page and verify that the previously selected response for AGU 2 ficha is still persisted after auto-save

stable (1x)
step3784-evaluation-ficha-after-reload

step3784 evaluation ficha after reload

14. navigate Navigate back to the project evaluation page to verify persistence
15. screenshot Capture the evaluation page after reload to confirm the auto-saved response is still selected
Prova 1 (05/06 08:38) PASS Vídeo
#C1 PASS

Codi Playwright tots els passos · // @lock / // @unlock per protegir línies

Desat ✓ Edita directament · usa // @lock i // @unlock en línies separades per bloquejar una secció

Detalls

Estat
active
Generació
unstable
Validació
stable
Tipus
Playwright
Creat
03/06/2026 14:42

Tags

Tots els tags afegits

Cap tag assignat

Instruccions IA

Projecte

- **Locale coverage:** every public page and every key flow must be exercised in **both `/es` and `/eu`**; additionally verify the `/locale/{eu}` switch redirects back and persists in session. - **Default test account:** `admin@sprilur.test` / `password` (is_admin, verified, no 2FA) — use for `/admin` and authenticated frontend flows. For permission tests, use a **non-admin verified** user. - **Data conventions:** suffix any created test data (project `title`, document name, etc.) with a unique `uid` (timestamp/run id) to avoid collisions across runs. - **Mandatory assertions:** every form submission must assert the success outcome (redirect/toast) **and** the absence of validation errors; every navigation must assert the resulting **URL including its locale prefix**. - **Scope/priority:** auth + private project flows (login, create, evaluate, export) are **regression-critical** and get happy-path + key edge cases; public/buscador flows get happy path plus the "no guide type / no results / URL hydration" edges; backoffice gets representative CRUD smoke tests. - **Known seeded data to rely on:** - Guide types: **Urbanización** (`urbanization`), **Edificación** (`building`). - Typologies (urbanization): Residencial, Industrial, Terciario, Logístico, Equipamiento público, Mixto. (building): Edificio industrial, Edificio terciario. - Scopes (ámbito): **Proyecto**, **Obra**. - Chapters: GEN General, TRA Trabajos previos, PRE, VIA, AGU Agua, EST, ENE Energía, ZON, RES Residuos, EJE, MAN; (building) EDI Diseño del edificio, ENV. - Agents: Promotor, Proyectista, Constructor, Dirección facultativa, Administración pública, Empresa de mantenimiento. - Stages (Etapa): Planeamiento, Proyecto, Ejecución, Uso y mantenimiento, Fin de vida. - **Exports:** for PDF/CSV, assert the response/download headers (and CSV `;`/`,` formatting), not the binary contents.

Features Desat!

KPIs

Taxa d'èxit
33.3%
1r intent OK
0%
Iteracions totals
12
Temps total
163s
→ Validaci&oacute;
163s
Cost total
$1.4452
Tokens totals
1,834,845
Crides API
12
→ Cost/pas
$0.00c

Cost IA

Total
$1.4452
Generació
$0.2210
Execucions
$0.48c
Tokens totals
1,834,845
Crides API
12

Últimes Execucions

Cap execució encara.