Devtools make Playwright testing more difficult

Aperta
#318 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
playwright, react, typescript

Direzione di ricerca

Inizia riproducendo il problema con TanStack Devtools 0.9.2, React 19.2, Playwright e query devtools configurato con defaultOpen: true. Confronta le selezioni di Playwright con i devtools abilitati e nascosti; il lavoro è completato quando i devtools rimangono utilizzabili e i selettori per gli ID dell'applicazione non selezionano più contenuti dei devtools.

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

Descrizione

TanStack Devtools version

0.9.2

Framework/Library version

React v19.2

Describe the bug and the steps to reproduce it

We just recently upgraded from using @tanstack/react-query-devtools and @tanstack/react-router-devtools to integrating them into the new @tanstack/react-devtools. However, this upgrade started to fail our Playwright E2E tests that did selections for IDs of items since they also show up in the query devtools when using defaultOpen: true. This lead us on a bit of a goose chase before realizing it was the devtools getting selected. This is obviously only a problem when doing tests locally with the devtools enables, but it is something we do quite often. For now setting defaultOpen: false on all plugins work, but it feels like a sad workaround. display: none on the #tanstack_devtools also work, but that breaks opening it without even more nasty hacks.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

N/A

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

Yes, I think I know how to fix it and will discuss it in the comments of this issue

Terms & Code of Conduct
  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Lingua principale
TypeScript
Stelle
499
Fork
100
Merge medio
1g 17h
PR unite (30g)
4

Guida per i contributori

Apri la guida per i contributori

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 TanStack/devtools

Tutte le issue di TanStack/devtools

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.