Closed dostrog closed 3 years ago
When we use something like this (pay attention on .prevent with click):
.prevent
<x-jet-danger-button wire:key="del-actions" wire:click.prevent="delete" onclick="confirm('Remove car \\'{{ $car->name }}\\'.\nAre you sure?') || event.stopImmediatePropagation()" wire:loading.attr="disabled"> <x-far-trash-alt wire:loading.remove wire:target="delete" class="-ml-0.5 mr-2 h-4 w-4" /> <x-fas-spinner wire:loading wire:target="delete" class="-ml-0.5 mr-2 h-4 w-4 animate-spin" /> {{ __('Delete car') }} </x-jet-danger-button>
assertion
... $component->assertMethodWired('delete'); ...
does not work.
Hey @dostrog, thanks, I added support for that in the new version v0.2.3.. 👍
Thanx!
When we use something like this (pay attention on
.prevent
with click):assertion
does not work.