Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

291
Vistas
React testing library: find body element from a very down child

I am testing if a dialog open when fire a click event from another dialog. that means I am inside a very down child and I want to test another component that exist in the root sibling, here is what I mean:

<html>
  <header> <header>
  <body>
    <div>
        <AddModal />.... I am testing from a dialog component like 10 level down from here. (A)
    </div>
    <div>
        <ManageModal />.... and here is the second dialog component on top of the other dialog. (B)
    </div>
  </body>
</html>

now how can I test B from A using the react testing library? I have tried container

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda