How to check if an element has multiple classes? Couldn't find anything on the official docs, only:
cy.get('form').find('input').should('have.class', 'disabled')
or
expect($el).to.have.class('foo')
When inserting multiple class names, I get an error:
expect($el).to.have.class('foo bar baz')
Is there a solution?
Aucun commentaire:
Enregistrer un commentaire