Prompt
- goal: A new user can register through the registration form on /login and ends up authenticated tier: form entry: url: /login auth: guest data: uid: "{{generated at runtime}}" form: submit: 'form[action*="register"] button[type="submit"]' # the "Registrarse" button fields: - { label: "Nombre", selector: '#register-name', required: true, value: "Test User {uid}" } - { label: "Correo electronico", selector: '#register-email', required: true, value: "qa+{uid}@sprilur.test", note: "MUST be unique per run to avoid the unique-email collision (old run reused admin@sprilur.test)" } - { label: "Contrasena", selector: '#register-password', required: true, value: "password" } - { label: "Repetir contrasena", selector: '#register-password-confirmation', required: true, value: "password" } accept: - expect_not_url: /login - expect_authenticated: true notes: > Both the login and register forms live on /login (resources/views/pages/auth/partials/access-forms.blade.php); the register form posts to route register.store (Fortify). FIX: the old run navigated to the homepage (not /login) and reused an existing email. A brand-new unique email is required each run. New users get is_admin=false. TODO: confirm the exact post-register destination — Fortify may redirect to /dashboard OR to an email-verification notice (/verify-email) depending on MustVerifyEmail; assert "authenticated & off /login" and refine the oracle once confirmed. RECOMMENDED: add data-testids to the register submit button.
Pla de Test 2 pag · 7 passos · 0 validacions
Pàgines a visitar
Passos del test
| # | Acció | Descripció | Selector | Valor | |
|---|---|---|---|---|---|
input[name="name"]
input[name="email"]
input[name="password"]
input[name="password_confirmation"]
button[type="submit"]
Historial de validació 1 iteracions
Detalls
- Estat
- active
- Generació
- none
- Tipus
- Playwright
- Creat
- 11/06/2026 05:34
- Descripció
- Prueba que el proceso de registro de usuarios nuevos funciona correctamente con validaciones y confirmación
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
- 33.3%
- 1r intent OK
- 0%
- Iteracions totals
- 8
- Temps total
- 137s
- → Validació
- 137s
- Cost total
- $0.6995
- Tokens totals
- 98,700
- Crides API
- 11
- → Cost/pas
- $0.00c
Cost IA
- Total
- $0.6995
- Generació
- $0.6935
- Execucions
- $0.60c
- Tokens totals
- 98,700
- Crides API
- 11
Últimes Execucions
Cap execució encara.