Testing ImportAction within a table headerActions
Scenario: I have a livewire component using filament table with the headerActions of ImportAction. I have a csv file that when uploaded, will update the database with the values within in.
A snippet of my table:
My test
Problem: when I
->callTableAction('import_choices')
, I know I can pass through the $record, $data, $arguments from drilling into it, but I'm not too sure what I need to pass in order to get my import, and see that the $this->field->choice_id
is set.
When I run my test currently, I don't get any errors but my Import count is 0.
How do I test this import?0 Replies