Test form component's action
Is there a way of interacting with individual form components inside a form?
E.g how to call add action on a repeater?
Or testing a select's createOptionForm
In v2 you could
Also is there a way of asserting that an action was called or is there a way to test notifications for an action. How do test the replicate action redirects to the newly created product in
This shows 'A notification was not sent'
E.g how to call add action on a repeater?
mountFormComponentAction('data.categories', 'add')Or testing a select's createOptionForm
mountFormComponentAction('data.categories.record-183.language_id', 'editOption')In v2 you could
Also is there a way of asserting that an action was called or is there a way to test notifications for an action. How do test the replicate action redirects to the newly created product in
assertRedirect?This shows 'A notification was not sent'
Solution
GitHub
I searched the docs for how to test select createOptionUsing modal but i couldn't find any Forms\Components\Select::make('owner_id') ->relationship('owner', 'name') -...