Sant Feliu de GuixolsPRACT

Pàgina com arribar accessible en català

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

Accedeix a la pàgina de com arribar en català navegant a https://p565.tst.twentic.com/ca/com-arribar. Verifica que la pàgina carrega correctament amb codi d'estat HTTP 200. Comprova que no hi ha errors a la consola del navegador. Assegura't que tot el contingut sobre les opcions de transport (carretera, tren, avió) es mostra correctament.

Pla de Test 1 pag · 9 passos · 23 validacions

Pàgines a visitar

/ca/com-arribar Catalan version of the 'Com arribar' (how to arrive) page with road, train, and plane transport info

Passos del test

Validacions

Page returns HTTP 200 status code
No console errors occurred while loading the page
The page is served in Catalan (html lang='ca') html
Main H1 heading 'COM ARRIBAR' is visible main h1:has-text("COM ARRIBAR")
The 'Per carretera' section heading exists main h2:has-text("Per carretera")
The 'Amb tren' section heading exists main h2:has-text("Amb tren")
The 'Amb avió' section heading exists main h2:has-text("Amb avió")
The 'Cotxe' (car) subsection exists under Per carretera main h3:has-text("Cotxe")
The 'Autobús' subsection exists under Per carretera main h3:has-text("Autobús")
The 'Taxi' subsection exists under Per carretera main h3:has-text("Taxi")
The RENFE subsection exists under Amb tren main h3:has-text("RENFE")
The Aeroport de Girona subsection exists main h3:has-text("Aeroport de Girona")
The Aeroport de Barcelona subsection exists main h3:has-text("Aeroport de Barcelona")
The Aeroport de Perpignan subsection exists main h3:has-text("Aeroport de Perpignan")
External link to autopistas.com is present (road transport) main a[href="https://www.autopistas.com"]
External link to sarfa.com is present (bus service) main a[href="https://www.sarfa.com"]
External link to teisa-bus.com is present (bus service) main a[href="https://www.teisa-bus.com"]
External link to renfe.es is present (train info) main a[href="https://www.renfe.es"]
External link to girona-airport.cat is present main a[href="https://www.girona-airport.cat"]
External link to aena.es is present (Barcelona airport) main a[href="https://www.aena.es"]
External link to aeroport-perpignan.com is present main a[href="https://www.aeroport-perpignan.com"]
The AP-7 road reference appears in the road transport content main
Exactly one H1 heading on the page main h1

Historial de validació 1 iteracions

#? FAIL

Passos del Test 4 steps

1

Navigate to Catalan Com Arribar Page

Navigates to the Catalan 'Com arribar' (How to arrive) page and verifies it loads correctly with the proper heading visible

stable (2x)
step3537-com-arribar-loaded

step3537 com arribar loaded

1. navigate Navigate to the Catalan 'Com arribar' page and verify HTTP 200 response
2. wait Wait for the main heading 'COM ARRIBAR' to be visible to ensure the page rendered main h1:has-text("COM ARRIBAR")
3. screenshot Capture the loaded page top with H1 heading
Main H1 heading 'COM ARRIBAR' is visible
2

Wait for Road Transport Section

Waits for the 'Per carretera' (by road) section heading to be visible and captures a screenshot of the road transport section containing the car, bus, and taxi subsections.

stable (2x)
step3538-per-carretera-section

step3538 per carretera section

4. wait Wait for the 'Per carretera' (by road) section heading main h2:has-text("Per carretera")
5. screenshot Capture the road transport section with Cotxe, Autobús, Taxi subsections
The 'Per carretera' section heading exists
3

Wait for Train Transport Section

Wait for the train transport section heading to be visible and capture screenshot of the section with RENFE information

stable (2x)
step3539-amb-tren-section

step3539 amb tren section

6. wait Wait for the 'Amb tren' (by train) section heading main h2:has-text("Amb tren")
7. screenshot Capture the train transport section with RENFE info
The 'Amb tren' section heading exists
4

Wait for Airplane Transport Section

Waits for the airplane transport section heading 'Amb avió' to be visible and captures a screenshot of the section showing the three airport options (Girona, Barcelona, and Perpignan).

stable (2x)
step3540-amb-avio-section

step3540 amb avio section

8. wait Wait for the 'Amb avió' (by plane) section heading main h2:has-text("Amb avió")
9. screenshot Capture the airplane transport section with the three airports
The 'Amb avió' section heading exists
Generació inicial FAIL
#1 FAIL main a[href="https://www.sarfa.com"] · 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('main a[href="https://www.sarfa.com"]') Expected: 1 Rece... [veure tot] expect(locator).toHaveCount(expected) failed Locator: locator('main a[href="https://www.sarfa.com"]') Expected: 1 Received: 2 Timeout: 5000ms Call log: - Expect "to.have.count" with timeout 5000ms - waiting for locator('main a[href="https://www.sarfa.com"]') 9 × locator resolved to 2 elements - unexpected value "2"

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
28/05/2026 14:56

Tags

Tots els tags afegits

Cap tag assignat

Features Desat!

KPIs

Taxa d'èxit
100%
1r intent OK
0%
Iteracions totals
8
Temps total
37s
→ Validació
37s
Cost total
$3.9502
Tokens totals
1,901,162
Crides API
14
→ Cost/pas
$0.00c

Cost IA

Total
$3.9502
Generació
$1.7445
Execucions
$0.00c
Tokens totals
1,901,162
Crides API
14