sinnbeck/laravel-dom-assertions
Extra DOM assertion helpers for Laravel HTTP tests. Assert elements, text, forms, selects, and datalists with more precision than assertSee/SeeText. Works with Livewire and Blade views/components; includes quick existence checks and a method reference.
Adopt if:
assertSee/assertDontSee.Look elsewhere if:
For Executives: "This package supercharges our Laravel test suite by automating complex UI validations—like form submissions, dynamic content, and accessibility checks—without manual DOM inspection. It reduces frontend bugs in production by catching issues earlier, saving QA time and improving user experience. Low-risk (MIT license) and developer-friendly, it aligns with our shift-left testing goals."
For Engineering:
"Replace flaky assertSee hacks with fluent, chainable DOM assertions (e.g., assertFormExists()->hasCSRF()->hasMethod('PUT')). Works seamlessly with Livewire/Blade, supports whitespace normalization for cleaner tests, and integrates with existing Laravel test workflows. Zero dependency bloat—just install and assert."
How can I help you explore Laravel packages today?