How do you do cypress component testing?

it's hard to handle the tailwind css... Or there is a solution, but it may be too troublesome. Maybe not caring about style is the best choice?
2 Replies
Finn
Finn2y ago
do you mean its hard to find elements by class names? i would exclusively use test ids tbh
Sturlen
Sturlen2y ago
I'd go for contained text or test ids, as style classes shold be able to change independantly: cy.get('button').should('contains.text', 'Click me!')
Want results from more Discord servers?
Add your server