SprilurTests Project

Validación suma ponderaciones debe ser 100

/

Prompt

- goal: Submitting the create-project form when the area weightings do NOT sum to 100 fails server-side with the exact "El sumatorio de ponderaciones debe ser exactamente 100." error tier: form entry: url: /es/projects/create auth: user:admin form: submit: 'main button[type="submit"]' fields: - { label: "Título", selector: 'input[name="title"]', required: true, value: "Proyecto Test Ponderaciones {uid}" } - { label: "Tipo de guía", selector: 'select[name="guide_type_id"]', required: true, value: "Urbanización" } - { label: "Tipología", selector: 'select[name="typology_id"]', required: true, value: "Industrial" } - { label: "Alcance", selector: 'select[name="scope_id"]', required: true, value: "Proyecto" } - { label: "Materiales (weighting)", selector: 'input[name="weightings[materials]"]', required: true, value: 7, note: "default is 12; setting 7 makes the sum 95 != 100" } accept: - expect_text: "El sumatorio de ponderaciones debe ser exactamente 100." - expect_visible: 'ul.list-disc > li' - expect_url_contains: /projects/create notes: > Rule is server-side in StoreProjectRequest (after-validation: sum(weightings) !== 100 -> error on 'weightings'). Error text is exact. weightings[<area>] keys are the ScoringService::AREAS (materials, energy, water_cycle, atmosphere, waste, land_use, mobility, ecosystems, landscape, risks, climate_change, health_wellbeing). Errors render in a ul.list-disc list.

Pla de Test 3 pag · 17 passos · 3 validacions

Pàgines a visitar

/ Homepage - entry point to the application
/login Login page with email and password authentication form
/es/projects/create New project creation form with Datos generales, agents, and area weightings (ponderaciones)

Passos del test

Validacions

Validation error message for invalid weighting sum is visible on the page ul.list-disc > li
Error text matches exactly the expected validation message ul.list-disc > li
Page heading confirms we are still on the create project page — the project was not created h1

Historial de validació 1 iteracions

#? FAIL

Detalls

Estat
active
Generació
none
Tipus
Playwright
Creat
03/06/2026 14:43

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
100%
1r intent OK
0%
Iteracions totals
12
Temps total
72s
→ Validaci&oacute;
72s
Cost total
$1.9438
Tokens totals
3,246,954
Crides API
10
→ Cost/pas
$0.00c

Cost IA

Total
$1.9438
Generació
$0.1757
Execucions
$0.00c
Tokens totals
3,246,954
Crides API
10