I want to find a link using findByRole with the name "word". There's also a link with the name "word with". How can I use
cy.findByRole('link', { name: /name/i })
and only get the link containing "name"?
I want to find a link using findByRole with the name "word". There's also a link with the name "word with". How can I use
cy.findByRole('link', { name: /name/i })
and only get the link containing "name"?