wpstarter/dusk
Laravel Dusk browser automation and testing for WP Starter/Laravel-style apps. Write expressive end-to-end tests using a standalone Chromedriver by default (no JDK/Selenium required), with the option to use other Selenium drivers.
responsiveScreenshots().loginAs() instead of manual credential entry.aria-label presence).Adopt Dusk if:
browser()->visit('/')->assertSee('Welcome')) reduces test maintenance vs. raw Selenium.loginAs($user)).assertVue*() methods.Look Elsewhere if:
For Executives: "Laravel Dusk lets us automate 80% of our manual browser testing—saving 10+ hours/week in QA effort while catching critical bugs earlier. For example, we’ll use it to test our checkout flow end-to-end, reducing cart abandonment due to UI issues by 20%. It’s a low-risk investment: no new licenses, just PHP/Laravel expertise we already have. ROI comes from faster releases and fewer post-launch fixes."
Key Metrics to Track:
For Engineering: *"Dusk gives us a Laravel-native way to write maintainable browser tests without Selenium headaches. Here’s how we’ll use it:
loginAs()), Vue.js assertions, and Sail support.Trade-offs:
Call to Action:
For Developers: *"Dusk turns ‘click this button and check the URL’ into readable PHP:
$browser->visit('/dashboard')
->click('Logout')
->assertPathIs('/login');
loginAs($user), session sharing, and auth middleware work out of the box.waitForLocation()).composer require --dev laravel/dusk
php artisan dusk:install
Then write tests in tests/Browser/. Run with php artisan dusk or integrate into PHPUnit/Pest."*How can I help you explore Laravel packages today?