Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Flaky Playwright: ProductTour Classic walk presses Next past the last step and finishes the tour

Aperta Adatta ai principianti
#36,285 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@shrabantipaul-collate ci sta già lavorando.

Dal 26/10/2026.

  • #36286 di @shrabantipaul-collate — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
83/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
playwright, typescript
Ambito
frontend, testing

Direzione di ricerca

Apri playwright/e2e/Flow/ProductTour.spec.ts, in particolare il ciclo del tour Classic e goNext intorno alla riga 52. Leggi come il ciclo rileva last-step-button e come il test avanza tra i passaggi del tour. Aggiorna il controllo dell’ultimo passaggio in modo che usi la presenza del pulsante nel rendering, poi esegui il test Playwright denominato Classic ProductTour e conferma che termina senza fare clic su Next dopo l’ultimo passaggio.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Flow/ProductTour.spec.ts › Product tour — Classic › walks the Classic pages on recorded data and returns to Home fails in the merge queue on both attempts, e.g. https://github.com/open-metadata/OpenMetadata/actions/runs/40367741278/job/121741336962 (Postgresql PR Playwright E2E Tests, chromium-07):

Error: expect(received).toBe(expected)
Expected: true
Received: false
- Timeout 30000ms exceeded while waiting on the predicate
  at goNext (playwright/e2e/Flow/ProductTour.spec.ts:52:3)

The failure screenshot shows the tour's end modal ("You've successfully completed the tour") on Memories: the test pressed Next one more time on the last step.

Root cause (test)

The loop that walks the tour stops when last-step-button isVisible(). On the last step react-tour renders that button inside its [data-tour-elem="right-arrow"] Next arrow, so one extra goNext clicks Finish, the popover goes away and goNext's poll for the next step times out.

The trace shows why the check misses the last step. Moving from Context Center to Memories is a page change, run inside a view transition. goNext returns as soon as the popover's text changes. The DOM has Memories' text and last-step-button 15 ms later, but the screen still shows step 8 and react-tour has not placed the new popover, so isVisible() returns false (the Next arrow itself only becomes visible ~250 ms later). The loop then calls goNext on the last step.

The product behaves as designed: the user never sees the step before it is placed.

Fix

Decide "last step" from whether last-step-button is rendered (count() > 0), which is set in the same render as the step's text, instead of from its visibility.

Lingua principale
TypeScript
Stelle
15.4k
Fork
2.4k
Merge medio
1g 4h
PR unite (30g)
707

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di open-metadata/OpenMetadata

Tutte le issue di open-metadata/OpenMetadata

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.