SprilurTest Part Pública

Validar contador de fichas tras filtrar búsqueda

/

Prompt

- goal: In the fichas buscador, after applying a guide-type filter the results counter equals the number of ficha cards shown tier: flow entry: url: /es/fichas/buscador auth: guest steps: - { action: click, target: "Tipo de guía = Urbanización", selector: 'aside label:has-text("Urbanización")', note: "results + counter only appear once a guide type is chosen (noFilters otherwise)" } - { action: assert, target: "counter equals number of result articles" } accept: - expect_counter_equals_rows: counter: 'section p:has-text("fichas")' rows: 'section article' notes: > The counter is <p ...>{{ $cards->count() }} fichas</p> and is rendered ONLY when a guide type/filter is active (the noFilters branch shows a placeholder and no counter). The old run failed because it waited on "Tipo de guía" while the panel was collapsed/hidden — the filter lives in the visible desktop `aside` (or the mobile <details open>); select the guide type there first. Assert the counter number matches the count of <article> result cards. Livewire round-trip — wait before asserting.

Pla de Test 1 pag · 10 passos · 0 validacions

Pàgines a visitar

/es/fichas/buscador Search page where we filter sheets and verify counter matches results

Passos del test

Historial de validació 1 iteracions

#? FAIL

Detalls

Estat
active
Generació
none
Tipus
Playwright
Creat
11/06/2026 05:30
Descripció
Verificar que el número mostrado en el contador coincide con el total de fichas obtenidas después de aplicar filtros

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
75%
1r intent OK
0%
Iteracions totals
16
Temps total
140s
→ Validaci&oacute;
140s
Cost total
$0.8037
Tokens totals
131,322
Crides API
12
→ Cost/pas
$0.00c

Cost IA

Total
$0.8037
Generació
$0.7965
Execucions
$0.72c
Tokens totals
131,322
Crides API
12

Últimes Execucions

Cap execució encara.