Is there a way in which I can test the content of the pseudo CSS class for :before on my element with Cypress?
content
I have seen links documenting:
Try asserting on the text of the parent:
cy.get('.myClass').parent().should('have.text', 'foo-bar')
If that doesn't work, you may have to use the textContent property:
textContent
cy.get('.myClass').parent(). should($el => expect ($el).to.contain('foo-bar') )