F
Filament7mo ago
jals65

Adding id's to filament components

Hi, i'm implementing the visual tests with cypress in my app. And I'm having a problem with the selectors of the elements when it's an element created by a filament component like tables or buttons. It's possible to add selectors to the filament components (tables buttons, actions, etc.) like data-attributes or id's?
3 Replies
jals65
jals65OP7mo ago
I see that actions have extraAttributes function where I can add this attributes. But for example in some parts of the app like search, menu, tables or forms, I don't know how to do that. hi?
Dennis Koch
Dennis Koch7mo ago
Those aren't fields that can be customized. I guess your best bet is to use the classes as identifiers
jals65
jals65OP7mo ago
Ok, thanks.
Want results from more Discord servers?
Add your server