Closed avh4 closed 2 years ago
We've run into a similar issue, where we've got existing Cypress tests that, following [their best practice guides,](https://docs.cypress.io/guides/references/best-practices.html#:~:text=cy.get('[data-cy=submit]').click()) have data-cy="..."
attributes on the elements. We'd like to reuse those in elm-program-test.
(specifically, one of our use cases is rows in a table, which don't work great with <button>
or <a>
... hmm, adding role=button
might be enough? 🤔 )
In 3.6.0, buttons like the following are now clickable with clickButton "Button Label"
:
<button>
<img src="..." alt="Button Label" />
</button>
Here's the existing code that should be able to just work with
clickbutton "Close"
... though first, is the HTML that corresponds to actually accessible? Or should the HTML actually have a different way of adding the "Close" text?