orchestra/testbench-dusk
Laravel Dusk helper for Laravel package development. Integrates with Orchestra Testbench to run browser tests against a package’s test app, making it easier to write and maintain Dusk suites for packages.
Adopt when:
Look elsewhere when:
For Executives/Stakeholders: "This package lets us automate UI testing for our Laravel packages—just like how we test APIs today—but for the browser. Instead of manually clicking through dashboards or forms to catch bugs, we’ll run automated end-to-end tests in our CI pipeline. This cuts release cycles, reduces manual QA costs, and future-proofs our packages against Laravel updates. For example, if we’re building a [package name] with a complex admin panel, this ensures every feature works as expected without flaky deployments. It’s a low-cost, high-impact way to improve quality and developer velocity."
For Engineering Teams: *"orchestra/testbench-dusk bridges the gap between unit tests and manual QA by letting us test browser interactions (e.g., form submissions, UI flows) in a Testbench-powered environment. Key benefits:
For Developers: *"This is Dusk for package testing. Instead of:
# Manual QA
composer create-project laravel/laravel test-app
cd test-app && vendor/bin/sail up && # ... click through UI ...
We’ll write:
// Automated test
$browser->visit('/admin/dashboard')
->click('@submit-button')
->assertSee('Success!');
Pros:
How can I help you explore Laravel packages today?