Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

286
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!