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