Prompt
- goal: Switching the backoffice language to Euskera via the topbar language selector navigates through /locale/eu and reloads the Filament panel in Basque tier: flow entry: url: /admin auth: admin steps: - { action: select, target: "Idioma (topbar language switcher)", selector: 'nav select, form select', value: "EU", note: "the topbar select's onchange navigates to route('locale.switch', eu)" } - { action: assert, target: "Panel reloaded in Basque" } accept: - expect_url_contains: /admin - expect_option_selected: { selector: 'select', text: "EU" } notes: > Two mechanisms exist: (a) the TOPBAR_START locale-switcher partial — a <select> whose options are route('locale.switch', es|eu) and onchange=window.location.href=this.value; (b) Filament user-menu items "Español"/"Euskera" linking to the same route. Prefer the topbar select (value ends with /locale/eu). The LocaleController switches session locale (SetLocale persists it) and redirects back, so the resulting URL is the admin panel with EU selected. Translatable strings then render in Basque. TODO: exact Basque label of a stable panel element to assert on (e.g. a nav item) if a stronger oracle is wanted.
Pla de Test 3 pag · 10 passos · 7 validacions
Pàgines a visitar
Passos del test
| # | Acció | Descripció | Selector | Valor | |
|---|---|---|---|---|---|
input[type="email"]
input[type="password"]
button[type="submit"]
button[aria-label="Menú del Usuario"]
a[href*="/locale/eu"]
a[href*="/admin/documents"]
Validacions
input[type="email"]
h1
button[aria-label="Menú del Usuario"]
a[href*="/locale/eu"]
nav select
a[href*="/admin/documents"]
a[href*="/admin/users"]
Historial de validació 1 iteracions
Detalls
- Estat
- active
- Generació
- none
- Tipus
- Playwright
- Creat
- 03/06/2026 14:42
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
- 8
- Temps total
- 86s
- → Validació
- 86s
- Cost total
- $0.4804
- Tokens totals
- 503,475
- Crides API
- 7
- → Cost/pas
- $0.00c
Cost IA
- Total
- $0.4804
- Generació
- $0.1016
- Execucions
- $0.00c
- Tokens totals
- 503,475
- Crides API
- 7