This package adds some nice new Livewire assertions which I was missing while testing my applications using Livewire.
You can install the package via composer:
composer require christophrumpel/missing-livewire-assertions
The new assertions get added automatically, so you can use it immediately.
Livewire::test(FeedbackForm::class)
->assertPropertyWired('email');
Livewire::test(FeedbackForm::class)
->assertMethodWired('submit');
Livewire::test(FeedbackForm::class)
->assertContainsLivewireComponent(CategoryList::class);
You can use the component tag name as well:
Livewire::test(FeedbackForm::class)
->assertContainsLivewireComponent('category-list');
Livewire::test(FeedbackForm::class)
->assertContainsBladeComponent(Button::class);
You can use the component tag name as well:
Livewire::test(FeedbackForm::class)
->assertContainsBladeComponent('button');
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.