sinnbeck/laravel-dom-assertions
Extra DOM assertion helpers for Laravel HTTP tests, giving you finer control than assertSee and friends: assert on elements, forms, selects, datalists, and text, with quick existence checks and Livewire/Blade support.
Adopt if:
assertSee/assertDontSee.Look elsewhere if:
Release note (v3.3.0): No breaking changes or new public API. Changes are a CI dependency bump for setup-php and an internal assertion speed-up. Existing suites should upgrade in place — treat as a routine patch-level adoption, not a migration project.
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. The latest release also makes our UI assertions faster, so growing our test coverage no longer means proportionally growing CI wait times. 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. v3.3.0 is a drop-in upgrade: faster assertions, no API changes, no code changes required on our side."
How can I help you explore Laravel packages today?