Back Button Testing
Browser Testing With Laravel Dusk

Browser Testing With Laravel Dusk

Laravel Dusk provides an expressive testing API and browser automation for your apps. In terms of testing, it provides the closest thing to an actual user interacting with your application in a browser. These tests are typically referred to as end to end tests or browser tests. In this series, we’ll prepare a series of Dusk tests for a standard blog application.

Intermediate
4 episodes
48m
4
Latest Episode in This Series

Added 3 months ago

Testing Your JavaScript

Often times, it is easier to test your front-end JavaScript code with an end to end...

Watch
Browser Testing With Laravel Dusk

Browser Testing With Laravel Dusk

Version: Dusk v6

Laravel Dusk provides an expressive testing API and browser automation for your apps. In terms of testing, it provides the closest thing to an actual user interacting with your application in a browser. These tests are typically referred to as end to end tests or browser tests. In this series, we’ll prepare a series of Dusk tests for a standard blog application.

Begin
4
Latest Episode in This Series

Added 3 months ago

Testing Your JavaScript

Often times, it is easier to test your front-end JavaScript code with an end to end test....
Watch

Your Teacher | Andre Madarang

https://laracasts.s3.amazonaws.com/avatars/andre-madarang.jpg's avatar
Greetings! I'm Andre, a full-stack web developer and Laracasts instructor. My other hobbies include playing guitar, videography and gaming.
    1. Free Episode Run Time 12:37

      To get started, we'll install Laravel Dusk and write some tests for the basic auth scaffolding in Laravel.

    2. Free Episode Run Time 15:09 View Source

      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.

    3. 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.

    4. 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.