Sant Feliu de GuixolsAgenda

Filtrar eventos por categoría

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

En la página de Agenda, selecciona una categoría específica del filtro (ej: Cultura, Deportes). Verifica que solo se muestran eventos de esa categoría. Prueba con múltiples categorías y confirma que el filtro funciona correctamente.

Pla de Test 1 pag · 15 passos · 23 validacions

Pàgines a visitar

/es/agenda Agenda page with month calendar grid and category filter nav

Passos del test

Validacions

On default load, Todos filter link is marked active with border-text-placeholder class nav[aria-label="Todos"] a.border-text-placeholder
On default load, calendar grid contains at least one event link nav[aria-label="Todos"] ~ div a[href*="/agenda/esdeveniments/"]
After clicking Gastronomía, that filter link is the active one nav[aria-label="Todos"] a.border-text-placeholder
After Gastronomía filter, calendar shows Ganxotapes de Primavera (gastronomy event) nav[aria-label="Todos"] ~ div a[href*="ganxotapes-primavera"]
After Gastronomía filter, calendar shows Taller de Cocina Marinera (gastronomy event) nav[aria-label="Todos"] ~ div a[href*="taller-cuina-marinera"]
After Gastronomía filter, calendar does not show Caminata Nocturna (nature/sport event) nav[aria-label="Todos"] ~ div a[href*="caminada-nocturna-gavarres"]
After Gastronomía filter, calendar does not show Ciclo de Cine al Aire Libre (culture event) nav[aria-label="Todos"] ~ div a[href*="cicle-cinema-fresca"]
After Gastronomía filter, calendar does not show Festival de Música (culture event) nav[aria-label="Todos"] ~ div a[href*="festival-musica-demo"]
After clicking Naturaleza y deporte, that filter link is the active one nav[aria-label="Todos"] a.border-text-placeholder
After Naturaleza y deporte filter, calendar shows Caminata Nocturna por las Gavarres nav[aria-label="Todos"] ~ div a[href*="caminada-nocturna-gavarres"]
After Naturaleza y deporte filter, calendar does not show Ganxotapes de Primavera (gastronomy event) nav[aria-label="Todos"] ~ div a[href*="ganxotapes-primavera"]
After Naturaleza y deporte filter, calendar does not show Taller de Cocina Marinera (gastronomy event) nav[aria-label="Todos"] ~ div a[href*="taller-cuina-marinera"]
After Naturaleza y deporte filter, calendar does not show Ciclo de Cine (culture event) nav[aria-label="Todos"] ~ div a[href*="cicle-cinema-fresca"]
After clicking Cultura y espectáculos, that filter link is the active one nav[aria-label="Todos"] a.border-text-placeholder
After Cultura y espectáculos filter, calendar shows Ciclo de Cine al Aire Libre nav[aria-label="Todos"] ~ div a[href*="cicle-cinema-fresca"]
After Cultura y espectáculos filter, calendar shows Festival de Música de Sant Feliu nav[aria-label="Todos"] ~ div a[href*="festival-musica-demo"]
After Cultura y espectáculos filter, calendar shows Concierto en la Ermita de Sant Elm nav[aria-label="Todos"] ~ div a[href*="concert-sant-elm"]
After Cultura y espectáculos filter, calendar does not show Ganxotapes de Primavera (gastronomy event) nav[aria-label="Todos"] ~ div a[href*="ganxotapes-primavera"]
After Cultura y espectáculos filter, calendar does not show Caminata Nocturna (nature event) nav[aria-label="Todos"] ~ div a[href*="caminada-nocturna-gavarres"]
After clearing filter (Todos), Todos filter link is marked active nav[aria-label="Todos"] a.border-text-placeholder
After clearing filter, calendar restores Ganxotapes de Primavera (gastronomy) nav[aria-label="Todos"] ~ div a[href*="ganxotapes-primavera"]
After clearing filter, calendar restores Caminata Nocturna (nature/sport) nav[aria-label="Todos"] ~ div a[href*="caminada-nocturna-gavarres"]
After clearing filter, calendar restores Ciclo de Cine al Aire Libre (culture) nav[aria-label="Todos"] ~ div a[href*="cicle-cinema-fresca"]

Historial de validació 1 iteracions

#? FAIL

Passos del Test 5 steps

1

Navigate to Agenda Page and Capture Default State

Navigates to the Spanish Agenda page and captures the default state showing all events with the 'Todos' category filter active.

stable (4x)
step3570-agenda-default

step3570 agenda default

1. navigate Navigate to the Agenda page
2. wait Wait for category filter navigation to be present nav[aria-label="Todos"]
3. screenshot Capture default Agenda state with Todos active and all events visible
2

Filter Agenda by Gastronomía Category

Clicks the Gastronomía category filter link to filter agenda events by gastronomy category, waits for the filter to become active, and captures the filtered calendar view

stable (4x)
step3571-agenda-filter-gastronomia

step3571 agenda filter gastronomia

4. click Click Gastronomía category filter link nav[aria-label="Todos"] a[href*="category=gastronomy"]
5. wait Wait for Gastronomía filter to become active (border-text-placeholder class applied) nav[aria-label="Todos"] a.border-text-placeholder
6. screenshot Capture Gastronomía-filtered calendar view
On default load, Todos filter link is marked active with border-text-placeholder class
After clicking Gastronomía, that filter link is the active one
After clicking Naturaleza y deporte, that filter link is the active one
After clicking Cultura y espectáculos, that filter link is the active one
After clearing filter (Todos), Todos filter link is marked active
3

Filter Agenda by Naturaleza y deporte Category

Clicks the Naturaleza y deporte category filter in the agenda navigation, waits for the filter to become active, and captures a screenshot of the filtered calendar view showing only nature and sports events.

stable (4x)
step3572-agenda-filter-naturaleza

step3572 agenda filter naturaleza

7. click Click Naturaleza y deporte category filter link nav[aria-label="Todos"] a[href*="category=nature_sport"]
8. wait Wait for Naturaleza y deporte filter to become active nav[aria-label="Todos"] a.border-text-placeholder
9. screenshot Capture Naturaleza y deporte filtered calendar view
On default load, Todos filter link is marked active with border-text-placeholder class
After clicking Gastronomía, that filter link is the active one
After clicking Naturaleza y deporte, that filter link is the active one
After clicking Cultura y espectáculos, that filter link is the active one
After clearing filter (Todos), Todos filter link is marked active
4

Filter Agenda by Cultura y espectáculos Category

Clicks the Cultura y espectáculos category filter link in the agenda navigation, waits for the filter to become active, and captures a screenshot of the filtered calendar view showing only culture and events content.

stable (4x)
step3573-agenda-filter-cultura

step3573 agenda filter cultura

10. click Click Cultura y espectáculos category filter link nav[aria-label="Todos"] a[href*="category=culture_events"]
11. wait Wait for Cultura y espectáculos filter to become active nav[aria-label="Todos"] a.border-text-placeholder
12. screenshot Capture Cultura y espectáculos filtered calendar view
On default load, Todos filter link is marked active with border-text-placeholder class
After clicking Gastronomía, that filter link is the active one
After clicking Naturaleza y deporte, that filter link is the active one
After clicking Cultura y espectáculos, that filter link is the active one
After clearing filter (Todos), Todos filter link is marked active
5

Clear Agenda Category Filter and Restore All Events

Clicks the 'Todos' filter link to clear any active category filter and restore the complete agenda view showing all events across categories. Verifies that all event links are visible again and the Todos filter shows as active.

stable (4x)
step3574-agenda-todos-restored

step3574 agenda todos restored

13. click Click Todos to clear category filter and restore all events nav[aria-label="Todos"] a:not([href*="category"])
14. wait Wait for Todos filter to become active after clearing nav[aria-label="Todos"] a.border-text-placeholder
15. screenshot Capture unfiltered Todos state with all events restored
On default load, Todos filter link is marked active with border-text-placeholder class
After clicking Gastronomía, that filter link is the active one
After clicking Naturaleza y deporte, that filter link is the active one
After clicking Cultura y espectáculos, that filter link is the active one
After clearing filter (Todos), Todos filter link is marked active
Generació inicial FAIL
#1 FAIL nav[aria-label="Todos"] ~ div a[href*="/agenda/esdeveni... · 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('nav[aria-label="Todos"] ~ div a[href*="/agenda/esdeveni... [veure tot] expect(locator).toHaveCount(expected) failed Locator: locator('nav[aria-label="Todos"] ~ div a[href*="/agenda/esdeveniments/"]') Expected: 1 Received: 0 Timeout: 5000ms Call log: - Expect "to.have.count" with timeout 5000ms - waiting for locator('nav[aria-label="Todos"] ~ div a[href*="/agenda/esdeveniments/"]') 9 × locator resolved to 0 elements - unexpected value "0"
#2 FAIL pas 15 · 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('a[data-testid="agenda-month-lane"]') Expected: 10 Recei... [veure tot] expect(locator).toHaveCount(expected) failed Locator: locator('a[data-testid="agenda-month-lane"]') Expected: 10 Received: 11 Timeout: 5000ms Call log: - Expect "to.have.count" with timeout 5000ms - waiting for locator('a[data-testid="agenda-month-lane"]') 9 × locator resolved to 11 elements - unexpected value "11"
#3 FAIL pas 15 · regenerate
El selector coincideix amb més d'un element — cal afinar-lo perquè sigui únic.
expect(locator).toBeVisible() failed Locator: locator('a[data-testid="agenda-month-lane"][href*="ganxotapes-primavera"]... [veure tot] expect(locator).toBeVisible() failed Locator: locator('a[data-testid="agenda-month-lane"][href*="ganxotapes-primavera"]') Expected: visible Error: strict mode violation: locator('a[data-testid="agenda-month-lane"][href*="ganxotapes-primavera"]') resolved to 2 elements: 1) <a title="Ganxotapes de Primavera" data-testid="agenda-month-lane" href="https://p565.tst.twentic.com/es/agenda/esdeveniments/ganxotapes-primavera" class="block text-sm font-normal leading-none px-2 py-[3px] truncate transition-opacity hover:opacity-75 focus:outline-2 focus:outline-brand text-text-primary rounded-l">↵ Ganxotapes d…</a> aka getByTestId('agenda-month-lane').nth(2) 2) <a title="Ganxotapes de Primavera" data-testid="agenda-month-lane" href="https://p565.tst.twentic.com/es/agenda/esdeveniments/ganxotapes-primavera" class="block text-sm font-normal leading-none px-2 py-[3px] truncate transition-opacity hover:opacity-75 focus:outline-2 focus:outline-brand text-text-primary rounded-r">↵ Ganxotapes d…</a> aka getByTestId('agenda-month-lane').nth(4) Call log: - Expect "to.be.visible" with timeout 5000ms - waiting for locator('a[data-testid="agenda-month-lane"][href*="ganxotapes-primavera"]')

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
01/06/2026 13:15

Tags

Tots els tags afegits

Cap tag assignat

Features Desat!

KPIs

Taxa d'èxit
100%
1r intent OK
0%
Iteracions totals
20
Temps total
98s
→ Validaci&oacute;
98s
Cost total
$2.1422
Tokens totals
1,457,179
Crides API
10
→ Cost/pas
$0.00c

Cost IA

Total
$2.1422
Generació
$1.3381
Execucions
$0.00c
Tokens totals
1,457,179
Crides API
10