test `--simple` resource crud
I am testing
simple
resource like has form
, has form field
but I always got error, below are my test and error I had.
Error => Argument #1 ($form) must be of type Filament\Forms\Form, Filament\Infolists\Infolist given.
How Can I make this test pass. thanks in advance
EDITED: Now error only on formSolution:Jump to solution
because it is not a form, it is a modal form.
You could verify if the action was called or if the modal form contains something using
assertSee
or assertSeeHtml
https://filamentphp.com/docs/3.x/actions/testing#modal-content...3 Replies
I can make it pass validation and create.. but not the above

Solution
because it is not a form, it is a modal form.
You could verify if the action was called or if the modal form contains something using
assertSee
or assertSeeHtml
https://filamentphp.com/docs/3.x/actions/testing#modal-content😂 I fixed my other (previous) error using
->assertSee
but forgot to apply here, assertSee is working fine.. thanks