Setting/Asserting TableActionData
does ->setTableActionData($data) wipe out default() values for the form even if its not a set in $data and can ->assertTableActionDataSet() check defaults? Was thinking something like
->assertTableActionDataSet([...$data, 'primary_case_manager' => $user->case_manager_id]). Full code being . Cant seem to assert that default value of the primary_case_manager field.
Solution:Jump to solution
```php
Livewire::test(ListParticipants::class)
->mountTableAction(CreateAction::class)
->setTableActionData($data)
->assertFormFieldIsVisible('name', 'mountedTableActionForm')...
2 Replies
Solution
ha, it did actually work. I think i had some other data that wasnt right due to how a factory was setup and the app being multitenant