christophrumpel / missing-livewire-assertions

Adding the missing Livewire assertions to your Laravel project
MIT License
136 stars 25 forks source link

Enhance wire model assertion #3

Closed nuernbergerA closed 3 years ago

nuernbergerA commented 3 years ago

Currently assertPropertyWired('foo') only checks for wire:model="foo"

This PR adds the ability to match also wire:model.defer="foo" or wire:model.lazy="foo"

GertjanRoke commented 3 years ago

@nuernbergerA There are also options like this: wire:model.debounce.500ms.

This can also apply for lazy like so: wire:model.lazy.500ms

See: https://laravel-livewire.com/docs/2.x/properties#debouncing-input