Sant Feliu de GuixolsACCOM

Filtres es mantenen al navegar a pàgina 2

/

Prompt

- goal: Filtres es mantenen al navegar a pàgina 2 tier: flow entry: url: /ca/on-dormir auth: guest steps: - action: navigate target: /ca/on-dormir - action: assert target: see accept + notes for the exact checks and journey accept: - expect_url: //ca/on-dormir/ - expect_visible: main h1 - expect_text: selector: main h1 text: ON DORMIR - expect_visible: '[data-testid="pagination"]' - assert: expect(hotelButton).toBeVisible() - assert: expect(hotelHeading).toBeVisible() - expect_url: /type=hotel/ - expect_url: /page=2/ - expect_text: selector: '[data-testid="pagination"] [aria-current="page"]' text: '2' - expect_visible: main h2:has-text("Hotel") notes: 'Journey (original intent): Accedeix a /ca/on-dormir i marca el filtre ''Hotel''. Un cop aplicat el filtre, fes clic al número 2 de la paginació (data-testid="pagination"). Verifica que la URL conté els paràmetres de filtre i page=2. Comprova que el llistat només mostra hotels i que correspon a la segona pàgina de resultats. URL-fix: all absolute https://p565.tst.twentic.com URLs converted to relative baseUrl paths; footer/nav absolute href selectors relaxed to href$= suffix match. Real defect observed: clicking page 2 LOST the ?type=hotel filter (should be preserved via withQueryString). Keep the assertion that URL retains type=hotel & page=2; a fail is a genuine defect.'

Pla de Test 3 pag · 15 passos · 12 validacions

Pàgines a visitar

/ca/on-dormir Accommodations directory (Catalan) — entry point, unfiltered list of accommodations grouped by type with type/category filters and pagination
/ca/on-dormir?type=hotel Listing filtered to Hotel type only — should show only the Hotel group heading
/ca/on-dormir?type=hotel&page=2 Hotel-filtered listing, page 2 — filter must be preserved and only hotels shown

Passos del test

Validacions

The pagination component is present with data-testid="pagination" [data-testid="pagination"]
After applying Hotel filter, the type-filter button label is 'Hotel' main button:has-text("Hotel"):not(:has-text("Hotels"))
After applying Hotel filter, an active filter chip 'Hotel ×' is visible main a.border-brand:has-text("Hotel")
After clicking page 2, the URL contains the type=hotel filter param (filter preserved) url
After clicking page 2, the URL contains page=2 query param url
Pagination marks page 2 as the current page via aria-current [data-testid="pagination"] [aria-current="page"]
The 'Hotel' group heading is visible in the listing on page 2 main h2:has-text("Hotel")
No 'Apartament' group heading is rendered (only hotels are shown) main h2:text-is("Apartament")
No 'Hostal' group heading is rendered (only hotels are shown) main h2:text-is("Hostal")
No 'Càmping' group heading is rendered (only hotels are shown) main h2:text-is("Càmping")
Page 2 shows 3 accommodation cards (server-paginated at 3 per page) main a[href*="/ca/on-dormir/"] h3
The page-2 'Previous page' link in the pagination preserves the Hotel filter (href contains type=hotel) [data-testid="pagination"] a[aria-label="Pàgina anterior"][href*="type=hotel"]

Historial de validació 1 iteracions

#? FAIL

Detalls

Estat
active
Generació
none
Tipus
Playwright
Creat
28/05/2026 14:47

Tags

Tots els tags afegits

Cap tag assignat

Features Desat!

KPIs

Taxa d'èxit
75%
1r intent OK
0%
Iteracions totals
16
Temps total
109s
→ Validació
109s
Cost total
$2.4747
Tokens totals
1,674,742
Crides API
10
→ Cost/pas
$0.00c

Cost IA

Total
$2.4955
Generació
$0.7616
Execucions
$0.70c
Tokens totals
1,679,593
Crides API
11

Últimes Execucions

Cap execució encara.