SprilurTests Evaluation

Navegación y export PDF en ficha proyecto

/

Prompt

- goal: Inside a project's evaluation, the chapter Siguiente/Anterior navigation, a card Reiniciar (with modal confirm), and the "PDF ficha" link all work tier: flow entry: url: /dashboard auth: user:admin preconditions: - desc: The user owns an OPEN project with multiple chapters and a card with an attached PDF (for "PDF ficha") existing_data_required: true steps: - { action: click, target: "Evaluación (open project)", selector: 'article a:has-text("Evaluación")' } - { action: click, target: "Siguiente <CODE>", selector: 'a:has-text("Siguiente")', note: "next-chapter link; href route projects.evaluate/{chapter}" } - { action: click, target: "Anterior <CODE>", selector: 'a:has-text("Anterior")' } - { action: click, target: "Reiniciar (open confirm) on a card", selector: 'article button:has-text("Reiniciar")', note: "MULTIPLE cards each have a Reiniciar trigger — scope to ONE article (old run hit 4 matches). Use .first() or a per-card testid" } - { action: click, target: "Reiniciar (confirm) in modal", selector: '[role="dialog"] button:has-text("Reiniciar")', note: "confirm button inside the [role=dialog]" } - { action: click, target: "PDF ficha", selector: 'article a:has-text("PDF ficha")', note: "target=_blank link to Storage cards disk; only present when the card has pdf_file" } accept: - expect_url_contains: /evaluate - expect_hidden: '[role="dialog"]' notes: > AMBIGUITY FIX: the confirmation modal reuses the "Reiniciar" label AND each card has its own trigger, so "Reiniciar" is not unique (old run found 4). Scope trigger to a single <article> and confirm to [role="dialog"]. RECOMMENDED: add [data-testid=card-reset-open]/[data-testid=card-reset-confirm] and [data-testid=card-pdf] in evaluate.blade.php. Chapter nav links read "Anterior {code}" / "Siguiente {code}" (route projects.evaluate). "PDF ficha" is an <a target=_blank> (Storage cards) — assert link, not a download event. existing_data_required: open project with chapters + a card PDF.

Pla de Test 2 pag · 13 passos · 0 validacions

Pàgines a visitar

/dashboard Access authenticated evaluation area
/es/projects/{id}/evaluate Test navigation buttons in project evaluation

Passos del test

Historial de validació 1 iteracions

#? FAIL

Detalls

Estat
active
Generació
none
Tipus
Playwright
Creat
11/06/2026 05:36
Descripció
Verifica botones anterior/siguiente/reiniciar/PDF en vista detalle de proyecto

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
60%
1r intent OK
0%
Iteracions totals
16
Temps total
109s
→ Validaci&oacute;
109s
Cost total
$0.9878
Tokens totals
171,654
Crides API
13
→ Cost/pas
$0.00c

Cost IA

Total
$0.9878
Generació
$0.9791
Execucions
$0.88c
Tokens totals
171,654
Crides API
13

Últimes Execucions

Cap execució encara.