SprilurTests Auth

Login al backoffice Filament com administrador

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 /admin/login i autentica't amb les credencials admin@sprilur.test i password. Verifica que després de l'autenticació exitosa es redirigeix al dashboard de Filament a /admin i que es pot veure el panell d'administració correctament.

Pla de Test 2 pag · 7 passos · 5 validacions

Pàgines a visitar

/admin/login Filament admin login form with email and password fields
/admin Filament admin dashboard (Escritorio) after successful authentication

Passos del test

Validacions

Dashboard heading Escritorio is visible after redirect main h1
Page URL is /admin (redirect happened successfully) main h1
Sidebar navigation link to Escritorio is present nav a[href$='/admin']:visible
User menu button with admin avatar is visible (confirms authenticated session) button[aria-label='Menú del Usuario']
Welcome widget with Bienvenida/o heading is shown on dashboard h2

Historial de validació 1 iteracions

#? FAIL

Passos del Test 3 steps

1

Navigate to Filament admin login page

Navigates to the Filament admin login page and captures a screenshot of the initial state before any credentials are filled

stable (2x)
step3705-login-page

step3705 login page

1. navigate Navigate to the Filament admin login page
2. screenshot Capture login page before filling credentials
2

Fill admin login credentials and submit

Fills the admin email and password fields with the correct credentials, then clicks the submit button to authenticate into the Filament admin panel

stable (2x)
step3706-admin-login-submitted

step3706 admin login submitted

3. fill Fill email field with admin credentials input[name='email']
4. fill Fill password field input[name='password']
5. click Click the Entrar submit button to authenticate button[type='submit']
Generació inicial FAIL
#1 FAIL pas 3 · refine
Temps d'espera exhaurit — l'element no es va trobar o la pàgina no va acabar de carregar.
locator.clear: Timeout 30000ms exceeded. Call log: - waiting for locator('input[name="email"]') [veure tot] locator.clear: Timeout 30000ms exceeded. Call log: - waiting for locator('input[name="email"]')
3

Wait for admin dashboard redirect and verify authentication

Waits for successful redirect to the Filament admin dashboard after login, verifies the presence of key UI elements including the main heading, navigation, and user menu, then captures a screenshot confirming successful authentication

stable (2x)
step3707-admin-dashboard

step3707 admin dashboard

6. wait Wait for redirect to /admin dashboard and Escritorio heading to appear main h1
7. screenshot Capture admin dashboard confirming successful authentication
Dashboard heading Escritorio is visible after redirect
Page URL is /admin (redirect happened successfully)

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
53s
→ Validació
53s
Cost total
$0.2858
Tokens totals
337,163
Crides API
6
→ Cost/pas
$0.00c

Cost IA

Total
$0.2858
Generació
$0.0666
Execucions
$0.00c
Tokens totals
337,163
Crides API
6