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
Passos del test
| # | Acció | Descripció | Selector | Valor | |
|---|---|---|---|---|---|
main h1
[data-testid="pagination"]
main button:has-text("Tots els establiments")
div[x-show="open"] a[href*="?type=hotel"]:visible
a[href="https://p565.tst.twentic.com/ca/on-dormir?type=hotel"]
main button:has-text("Hotel"):not(:has-text("Hotels"))
main h2:has-text("Hotel")
[data-testid="pagination"] a[aria-label="Anar a la pàgina 2"]
[data-testid="pagination"] [aria-current="page"]
main h2:has-text("Hotel")
Validacions
[data-testid="pagination"]
main button:has-text("Hotel"):not(:has-text("Hotels"))
main a.border-brand:has-text("Hotel")
url
url
[data-testid="pagination"] [aria-current="page"]
main h2:has-text("Hotel")
main h2:text-is("Apartament")
main h2:text-is("Hostal")
main h2:text-is("Càmping")
main a[href*="/ca/on-dormir/"] h3
[data-testid="pagination"] a[aria-label="Pàgina anterior"][href*="type=hotel"]
Historial de validació 1 iteracions
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.