Testing form actions
Couldn't see this in the docs. Given that a livewire component is set up with a custom form and action as follows:
With the following test (which fails) I can't find a way to pass the form to callAction order to test the action:
This results in Failed asserting that an action with name [action] exists on the [App\Filament\Pages\MyPage] page. Does such functionality exist?
Here a component name should be provided but we don't have one.
We need to solve this.
1 Reply
use
callFormComponentAction
https://github.com/filamentphp/filament/discussions/14493#discussioncomment-10913497GitHub
Testing form actions · filamentphp filament · Discussion #14493
Package Form builder Package Version v3.0.0 How can we help you? Couldn't see this in the docs. Given that a livewire component is set up with a custom form and action as follows: public functi...