Closed titantwentyone closed 2 years ago
Where we have:
<input type='text' wire:model='property'/> <button wire:click='method'>Do it!</button>
and test with:
Livewire::test(MyComponent::class) ->assertPropertyWired('property') ->assertMethodWired('method');
assertPropertyWired and assertMethodWired will both fail as it it is testing against double quotes rather than double quotes and single quotes.
assertPropertyWired
assertMethodWired
Failed asserting that '<div wire:id="fjmdPc9adH8Od6DRxZl6">\n <input type='text' wire:model="property"/>\n <--- fixed this to pass <button wire:click='method'>Do it!</button>\n </div>' matches PCRE pattern "/wire:click(\.(prevent))*="method(\s*\(.+\)\s*)?\s*"/".
I'll try and park some time and amend the regex for a PR.
Hey, good point. PR welcome! If you don't find the time let me know and I will add it.
Where we have:
and test with:
assertPropertyWired
andassertMethodWired
will both fail as it it is testing against double quotes rather than double quotes and single quotes.I'll try and park some time and amend the regex for a PR.