SprilurTests Auth

Validació camp email obligatori

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

Navega a la pàgina de login /login. Deixa el camp email completament buit. Omple el camp de contrasenya amb qualsevol valor. Intenta enviar el formulari clicant submit. Verifica que es mostra un missatge d'error de validació indicant que el camp email és obligatori.

Pla de Test 1 pag · 6 passos · 4 validacions

Pàgines a visitar

/login Login page with email/password form — contains HTML5 required validation on the email field

Passos del test

Validacions

Page URL remains /login — form was not submitted to the server due to validation
Email input has the required attribute, confirming the field is mandatory input#login-email[required]
Email input is in an invalid state (CSS :invalid pseudo-class) after submission attempt with empty value input#login-email:invalid
Email input validity.valueMissing is true — browser confirms the field was left empty input#login-email

Historial de validació 1 iteracions

#? FAIL

Passos del Test 3 steps

1

Navigate to login page and capture initial state

Navigates to the login page and captures the initial state showing empty login fields

stable (2x)
step3690-login-page-initial

step3690 login page initial

1. navigate Navigate to the login page
2. screenshot Capture initial state of login page with empty fields
2

Leave email empty and fill password with anypassword

Leaves the email field untouched (empty) and fills the password field with 'anypassword', then captures the form state

stable (2x)
step3691-password-filled-email-empty

step3691 password filled email empty

3. fill Leave the email field empty (do not interact with it)
4. fill Fill the password field with any value #login-password
3

Submit login with empty email and capture validation error

Clicks the submit button to trigger browser validation on the empty required email field, then captures the validation state where the email field shows as invalid and the page remains on the login form without navigating away.

stable (2x)
step3692-login-submit-empty-email

step3692 login submit empty email

5. click Click the Entrar submit button to trigger form validation button[type='submit']
6. screenshot Capture state after submit attempt — browser native validation tooltip is visible on the email field and page has not navigated away
Generació inicial FAIL
#1 FAIL pas 5 · 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"]')

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ó

Resum d'execució

Test estable · tots els passos correctes

Generant resum de l'execució…

Detalls

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

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
6
Temps total
32s
→ Validaci&oacute;
32s
Cost total
$0.3287
Tokens totals
389,696
Crides API
10
→ Cost/pas
$0.00c

Cost IA

Total
$0.3287
Generació
$0.1002
Execucions
$0.00c
Tokens totals
389,696
Crides API
10