Prompt
- goal: In the fichas buscador, after filtering to results, a ficha with an attachment exposes a working "Descargar PDF" link to the stored file tier: flow entry: url: /es/fichas/buscador auth: guest preconditions: - desc: At least one card (ficha) matching the chosen guide type/typology has a pdf_file attachment existing_data_required: true steps: - { action: click, target: "Tipo de guía = Urbanización", selector: 'aside label:has-text("Urbanización")' } - { action: click, target: "a Tipología option", selector: 'aside section:has(h3:has-text("Tipología")) label:first-of-type' } - { action: assert, target: "Descargar PDF link on a result card", selector: 'section article a[aria-label="Descargar PDF"]' } accept: - expect_visible: 'section article a[aria-label="Descargar PDF"]' - expect_attr_contains: { selector: 'section article a[aria-label="Descargar PDF"]', attr: href, value: "cards" } notes: > The download control is <a aria-label="Descargar PDF" target="_blank" href=Storage::disk('cards')->url(pdf_file)> and only renders when the ficha has pdf_file. IMPORTANT: it opens in a NEW TAB (target=_blank) — it does NOT fire a Playwright 'download' event (the old run's waitForEvent('download') was wrong). Assert the link is present and its href targets the cards storage disk. Must select a guide type first (noFilters state). existing_data_required: a matching ficha with an attached PDF.
Pla de Test 3 pag · 17 passos · 0 validacions
Pàgines a visitar
Passos del test
| # | Acció | Descripció | Selector | Valor | |
|---|---|---|---|---|---|
input[type="email"]
input[type="password"]
button[type="submit"]
label:has(input[type="radio"]):first-of-type
label:has(input[type="checkbox"]):first-of-type
a[href*="download"]:first-of-type, a[href*=".pdf"]:first-of-type, .download-link:first-of-type, button:contains("Descargar"):first-of-type
label:has(input[type="radio"]):first-of-type
label:has(input[type="checkbox"]):first-of-type
a[href*="download"]:first-of-type, a[href*=".pdf"]:first-of-type, .download-link:first-of-type, button:contains("Deskargatu"):first-of-type
Historial de validació 1 iteracions
Detalls
- Estat
- active
- Generació
- none
- Tipus
- Playwright
- Creat
- 11/06/2026 05:28
- Descripció
- Verificar que después de aplicar fichas en el Buscador, se puede descargar correctamente el fichero adjunto asociado
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
- 20%
- 1r intent OK
- 0%
- Iteracions totals
- 8
- Temps total
- 171s
- → Validació
- 171s
- Cost total
- $1.0779
- Tokens totals
- 206,772
- Crides API
- 14
- → Cost/pas
- $0.00c
Cost IA
- Total
- $1.0779
- Generació
- $1.0708
- Execucions
- $0.71c
- Tokens totals
- 206,772
- Crides API
- 14
Últimes Execucions
Cap execució encara.