How to confirm an element has a specific class

cy.focused().should('have.class', 'header--headline__focused')

Last updated

Was this helpful?