Form Testing

I have this basic testing below but it has an error "Attempt to read property "form" on null" May I know how can I resolve this one? it('can validate fee form', function () { livewire(CreateFee::class) ->fillForm([ 'name' => null, 'price' => null, 'interval' => null, ]) ->call('create') ->assertHasFormErrors(['name' => 'required']); });
0 Replies
No replies yetBe the first to reply to this messageJoin