To get started, we'll install Laravel Dusk and write some tests for the basic auth scaffolding in Laravel.
Next up, let's use Laravel Dusk to test some basic CRUD-related actions for our blog application. This will include asserting that all relevant posts display on the page, and a user can create, edit, and delete a post.
Let's move on and take a look at Dusk Pages and Components, which should allow us to clean up any repeated code we might have within our Dusk tests.
Often times, it is easier to test your front-end JavaScript code with an end to end test. Laravel Dusk allows you to simulate different events, such as double-clicking, right-clicking and keyboard shortcuts.