so I want to be able to get "Text B" from the table below using Cypress but have tried many things and I can only get "Party B".
<div class="table">
<div class="label">
<span class="labelText">Party A</span>
</div>
<div class="text">Text A</div>
</div>
<div class="table">
<div class="label">
<span class="labelText">Party B</span>
</div>
<div class="text">Text B</div>
</div>
I have been using cy.get(div[class="table"]).contains(div[class="label"], "Party B").click() to click on the text for "Party B", but don't know how to click on the other child of the same parent.