Devtools make Playwright testing more difficult
Personne n'a encore pris cette issue.
- Langage dominant
- TypeScript
- Étoiles
- 499
- Forks
- 100
- Merge moyen
- 1 j 17 h
- PR mergées (30 j)
- 4
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire le problème avec TanStack Devtools 0.9.2, React 19.2, Playwright et query devtools configuré avec defaultOpen: true. Comparez les sélections de Playwright avec les devtools activés et masqués ; le travail est terminé lorsque les devtools restent utilisables et que les sélecteurs des ID d’application ne sélectionnent plus de contenu des devtools.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- playwright, react, typescript
- Domaine
- devtools, frontend, testing-qa
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100