SprilurTests Project

Llistat de projectes mostra només els propis

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

Inicia sessió com a admin@sprilur.test amb contrasenya password. Navega a la pàgina /es/projects. Verifica que el llistat de projectes mostra només els projectes creats per l'usuari actual i no mostra projectes d'altres usuaris. Comprova que cada projecte llistat pertany a l'usuari amb sessió iniciada.

Pla de Test 2 pag · 7 passos · 6 validacions

Pàgines a visitar

/login Authentication page with email/password form and Entrar submit button
/es/projects Project list filtered to current user showing only own projects with edit action links

Passos del test

Validacions

Page heading 'Mis proyectos' is visible, confirming the list is scoped to the current user main h1
At least one project card (article element) is present in the list article
Every project card has an 'Editar datos' edit link, confirming each listed project belongs to the logged-in user article a[href*='/edit']:visible
Every project card has a 'Resultados' results link, confirming full ownership access article a:has-text('Resultados'):visible
The logged-in user identity 'Administrator' is displayed in the header, confirming the session belongs to admin@sprilur.test [aria-label='A Administrator']
No project card contains a user name different from the logged-in user — absence of foreign-user indicators article h2

Historial de validació 1 iteracions

#? FAIL

Passos del Test 3 steps

1

Navigate to login page

Navigates to the login page and captures a screenshot to verify the page loads correctly

stable (4x)
step3715-login-page

step3715 login page

1. navigate Navigate to the login page
2

Fill login credentials and submit

Fills the login form with admin credentials (admin@sprilur.test / password), submits it, and waits for redirect to dashboard

stable (4x)
step3716-login-successful

step3716 login successful

2. fill Enter the admin email address in the login email field #login-email
3. fill Enter the password in the login password field #login-password
4. click Click the Entrar button to submit the login form button:has-text('Entrar')
5. wait Wait for redirect after login — URL should change to /dashboard or /es/projects
Generació inicial FAIL
#3 FAIL · regenerate
Temps d'espera exhaurit — l'element no es va trobar o la pàgina no va acabar de carregar.
page.waitForURL: Timeout 10000ms exceeded. =========================== logs =========================== waiting for navi... [veure tot] page.waitForURL: Timeout 10000ms exceeded. =========================== logs =========================== waiting for navigation to "**/dashboard**" until "load" ============================================================
3

Navigate to projects list page

Navigate to the projects list page and capture a screenshot, then verify the page contains the expected project elements including edit links and results links

stable (5x)
step3717-projects-list

step3717 projects list

6. navigate Navigate to the projects list page
7. screenshot Capture the full project list page
Generació inicial FAIL
#1 FAIL pas 7 · refine
Temps d'espera exhaurit — l'element no es va trobar o la pàgina no va acabar de carregar.
expect(locator).toHaveCount(expected) failed Locator: locator('article') Expected: 1 Received: 3 Timeout: 5000ms Cal... [veure tot] expect(locator).toHaveCount(expected) failed Locator: locator('article') Expected: 1 Received: 3 Timeout: 5000ms Call log: - Expect "to.have.count" with timeout 5000ms - waiting for locator('article') 9 × locator resolved to 3 elements - unexpected value "3"
#2 FAIL · refine
Una comprovació (expect) ha fallat — el resultat esperat no coincideix amb el que hi havia a la pàgina.
expect: Property 'toHaveCountGreaterThanOrEqual' not found. [veure tot] expect: Property 'toHaveCountGreaterThanOrEqual' not found.
#4 FAIL [aria-label=\'A Administrator\'] · regenerate
Temps d'espera exhaurit — l'element no es va trobar o la pàgina no va acabar de carregar.
expect(locator).toBeVisible() failed Locator: locator('[aria-label=\'A Administrator\']').first() Expected: visible Tim... [veure tot] expect(locator).toBeVisible() failed Locator: locator('[aria-label=\'A Administrator\']').first() Expected: visible Timeout: 5000ms Error: element(s) not found Call log: - Expect "to.be.visible" with timeout 5000ms - waiting for locator('[aria-label=\'A Administrator\']').first()
Prova 1 (05/06 10:04) PASS Vídeo
#F1 PASS

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ó
unstable
Validació
stable
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
66.7%
1r intent OK
0%
Iteracions totals
12
Temps total
95s
→ Validació
95s
Cost total
$0.5693
Tokens totals
564,388
Crides API
15
→ Cost/pas
$0.00c

Cost IA

Total
$0.5693
Generació
$0.2446
Execucions
$0.57c
Tokens totals
564,388
Crides API
15

Últimes Execucions

Cap execució encara.