© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
3 replies
skyrowl

Test anonymous action in forms

Hey, I'm writing feature tests in my panel tho I have a problem. I can't seem to find a way to test actions in the component "Actions".
I tried multiple things:
- try every keys possible (Actions component key, "data.actionNameAction" as it is the key of the component, "actionName")
- try to mount the action (no errors) then to call mounted actions (errored)
- call action directly in test without using the form methods
Everytime I get "call to a member function getKey() on null". I can't seem to figure what component I should call or even if I should call one.
Thx for any help!
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

repeater - anonymous action - fillForm
FilamentFFilament / ❓┊help
3y ago
how to test anonymous actions?
FilamentFFilament / ❓┊help
3y ago
Create Action using different forms
FilamentFFilament / ❓┊help
16mo ago
Page with multiple forms action
FilamentFFilament / ❓┊help
3y ago