Testing Custom Header Delete or Save Actions
When testing a custom header action, I'm unable to validate the contents of the modal I'd like to surface to my users.
Is there a schema I need to pass in to my
TestAction
that the header actions are associated with?
The Action:
My Test:
I've also tried changing mountAction
to callAction
and have tried just passing in the string 'customHeaderAction'
to both. It does appear that the action exists, so I'm unsure that this is a bug since I have many other action-content-assertion tests that are passing fine, but any of my tests that assert functionality of custom header actions are failing.1 Reply
Seems like this is a combination of these two issues:
https://github.com/filamentphp/filament/issues/17857
https://github.com/filamentphp/filament/pull/17875
GitHub
[4.x] Action modal content not found in tests · Issue #17857 · fi...
Package filament/filament Package Version v4.0.17 Laravel Version v12.30.0 Livewire Version v3.6.4 PHP Version PHP 8.4.12 Problem description When mounting an action on a form schema - either in th...
GitHub
[4.x] Add key to form actions content component for use with testin...
Description
This is a proposal to add an explicit key to the default form action components.
If there is any modification to the behavior of the default actions in the form, such as a modal to conf...