https://cypress.io logo
cy.get("article").eq(0).click() Honestly, this is...
# help
l
> cy.get("article").eq(0).click() Honestly, this is about as resilient as I ever bother getting 🙂 But I understand your concern. I assume a proper
.within()
solution would look like this:
Copy code
cy.get('[data-test="articleList"]').within(() => {
  cy.get('article').eq(0).click()
}