© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
1 reply
Mike Peters

Testing / code covering toggled table columns

Hi all,
We use feature tests for all Filament behaviour and we intend to have full 100% code coverage. This works fine in most cases, but I can't seem to cover the
state()
state()
callback of a tableColumn that is
toggleable()->toggledHiddenByDefault()
toggleable()->toggledHiddenByDefault()
. I see various methods to manipulate tables during your tests, such as filtering, but I can't seem to find a way to toggle columns so they are shown and thus the
state()
state()
callback is called?
Screenshot_2025-06-12_at_09.39.11.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Persist toggled Columns over Logins
FilamentFFilament / ❓┊help
3y ago
Query only toggled/displayed columns
FilamentFFilament / ❓┊help
3y ago
Save toggled columns to user preferences
FilamentFFilament / ❓┊help
3y ago
Table columns
FilamentFFilament / ❓┊help
2y ago