F
Filament15mo ago
Jyrki

Testing TextInputColumn

I have almost 100% test coverage, I only can't find a way to test the TextInputColumn updateStateUsing callback. Anyone has done this already?
5 Replies
Dan Harrin
Dan Harrin15mo ago
we dont have helpers for editable columns yet so you can either PR the helper methods yourself or interact with the livewire testing helpers and work out what methods are getting called when a column is updated
Jyrki
Jyrki15mo ago
Ok, will see what I can come up with and if it's worth to PR it
gizmojo
gizmojo8mo ago
Just come looking for the same. Did you find a way of testing this @Jyrki
Jyrki
Jyrki8mo ago
I had a trick for v2 https://v2.filamentphp.com/tricks/test-an-editable-field, but did not need it yet for v3. So no idea if it will work
gizmojo
gizmojo8mo ago
Awesome cheers