SprilurTests Auth

Tancar sessió des de l'àrea privada

/

Prompt

- goal: A logged-in user can log out from the private area via the sidebar user menu, lands on the public home, and is then bounced to /login when re-requesting /es/projects tier: flow entry: url: /login auth: user:admin preconditions: - desc: A verified account able to reach the private area (default admin@sprilur.test) existing_data_required: true steps: - { action: navigate, target: "Private projects list", selector: 'url:/es/projects', note: "after login" } - { action: click, target: "Open user menu", selector: '[data-test="sidebar-menu-button"]', note: "app layout uses a Flux dropdown, NOT `header details summary` (that selector only exists on the public/guest header)" } - { action: click, target: "Log Out", selector: '[data-test="logout-button"]', note: "posts to route('logout')" } - { action: navigate, target: "Attempt private area while logged out", selector: 'url:/es/projects' } accept: - expect_url: /login - expect_visible: '#login-email' notes: > Logout control lives in resources/views/components/desktop-user-menu.blade.php: open with [data-test="sidebar-menu-button"], confirm with [data-test="logout-button"] (label "Log Out"). The old test failed because it used `header details summary`, which is the guest header dropdown.

Pla de Test 3 pag · 11 passos · 5 validacions

Pàgines a visitar

/login Login page with email/password form and Entrar submit button
/es/projects Private projects list — only accessible when authenticated
/ Public homepage — landing target after successful logout

Passos del test

Validacions

After login, the private projects page is accessible — heading Mis proyectos is visible h1
The user avatar details element is present in the header, confirming authenticated session header details summary
The Salir logout button is visible inside the open dropdown [data-test="logout-button"]
After logout, the user avatar details element is gone from the header header:not(:has(details))
After navigating to /es/projects while logged out, the login email field is visible — confirming redirect to /login #login-email

Historial de validació 1 iteracions

#? FAIL

Detalls

Estat
active
Generació
none
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
50%
1r intent OK
0%
Iteracions totals
17
Temps total
175s
→ Validació
175s
Cost total
$0.7621
Tokens totals
881,546
Crides API
12
→ Cost/pas
$0.00c

Cost IA

Total
$0.7621
Generació
$0.2243
Execucions
$0.54c
Tokens totals
881,546
Crides API
12

Últimes Execucions

Cap execució encara.