Testing formActions
I have a following footer actions:
Is there a way to test it? It is inside a section of the form
->footerActions([
fn (string $operation): Action => Action::make('saveBasicDetails')
->label('Save changes')
->action(function (Section $component, EditRecord $livewire) {
$livewire->saveFormComponentOnly($component);
Notification::make()
->title('Basic details saved')
->success()
->send();
})
->visible($operation == 'edit'),
])->footerActions([
fn (string $operation): Action => Action::make('saveBasicDetails')
->label('Save changes')
->action(function (Section $component, EditRecord $livewire) {
$livewire->saveFormComponentOnly($component);
Notification::make()
->title('Basic details saved')
->success()
->send();
})
->visible($operation == 'edit'),
])Is there a way to test it? It is inside a section of the form