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
Finn13mo ago
do you mean its hard to find elements by class names? i would exclusively use test ids tbh
Sturlen
Sturlen13mo 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
More Posts