Cypress Notes

Here's a compilation of questions and answers I've found around Cypress (the e2e testing tool) for anything running in a web browser.

Q: How to change the aria label of any element on the page

A: .should() can be used to check attributes on the element selected

cy.get(selector).should('have.attr', 'aria-checked', 'true');

In this case, we check that the selected element should have an attribute of aria-checked = 'true'

Powered By Swish