Testing custom create action in a getFormActions() #18623
-
PackageActions Package Versionv4 How can we help you?I am testing and validating data from a custom createAll action defined in a getFormActions() on a resource page (create). The docs give the following syntax : ->callAction(TestAction::make('createAndVerifyEmail')->schemaComponent('form-actions')); I pass my action name but not sure what exactly to replace 'form-actions' with in my schemaComponent. My schema uses a repeater to build multiple entries. When I fill the form and call the action, it says failed to assert action found on the resource page. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
Could you share the code? |
Beta Was this translation helpful? Give feedback.
-
|
i have this on my create page ` ` and this Repeater ` ` and then testing it like this ` which returns the error ` ` |
Beta Was this translation helpful? Give feedback.
-
|
returns this ` |
Beta Was this translation helpful? Give feedback.
-
|
It works now thank you. i fixed the error message above. |
Beta Was this translation helpful? Give feedback.
try this