I have three similar div tags as shown below:
<div data-test="someId" style="position: fixed; visibility: hidden;">more tags</div>
<div data-test="someId" style="position: fixed; visibility: hidden;">more tags</div>
<div data-test="someId" style="position: fixed;">more tags</div>
Note: here data-test id is same for all three.
All I want is the tag that is not hidden i.e third one
I've tried cy.get('[data-test=someId]').should('not.have.css', 'visibility')
but it's not working.