12 Replies
I'm not 100% sure but I think you would need to trigger the validation before checking for
assertHasFormErrors()
Try calling a form method like ->call('submit')
or something equivalent
Also I'm using ->assertHasErrors()
instead of the other one, not sure if that makes a difference...
still failing. LOL
it's not working
same error?
should work... can you share the resource code?
yes
Which resource code? I've already shared you. 🥹
that's worked.
But this is not the same test 😄
has errors / has no errors...
yes
I dont understand where am I do wrong?
https://github.com/livewire/livewire/issues/490
should work
Can you share the project on github?
Can I invite you through gmail?
it's private.
sure
[email protected]
wait. I will share you gist.
https://gist.github.com/ShaungBhone/fb80b7913472930168de5698ee21b130
@pboivin LOL I need actingAs.