
In this Lecture, we will go over how to get started with automation testing using Laravel Dusk. We install a demo application on which we will write Laravel Dusk Automation Tests.
Here you'll learn to generate and write a new dusk test. We will learn about special methods provided by dusk to deal with Authentication.
Let's write a new test and also create a new Browser macro function which we can use later in our tests.
Learn to isolate dusk tests with migrations and seeds, ensuring fresh data per test, and configure a dusk-specific environment for separate database connections and headless runs.
Learn to use Laravel factory methods to generate data for Dusk tests, write efficient tests, and verify admin vs non-admin access to user management with on-the-fly users.
Create a base DuskTestCase to centralize migration setup, then implement city create, read, update, and delete tests in Laravel Dusk Beginner to Advanced, refactoring repeated setup.
Learn to write laravel dusk tests that verify a user can read all cities and view a single city by seeding with a city factory and logging in as admin.
Write a laravel dusk feature test that logs in as admin and creates a city via the admin page using faker. Verify it appears and is saved in the database.
Learn how to test editing and deleting a city resource using Laravel Dusk, including seeding data with a factory, admin login, and handling soft deletes.
Master Laravel Dusk page objects to write maintainable, readable tests for city resources, generating pages for index, show, create, edit, and using dynamic routes for robust navigation.
Create page methods to reuse actions across tests, enabling readable, maintainable city index, show, create, edit, and delete flows with data-entry-id selectors.
Learn how to use dusk selectors in Laravel Dusk to reliably target page elements, including ID, CSS, and XPath alternatives, and how to add a dusk attribute for each button.
Automate a CRUD by writing Laravel Dusk tests for city source and category management, including add, read all, read a single, delete, and delete selected scenarios.
https://github.com/tushargugnani/QAP-Dusk-Screencast/commit/e6998f810f746bcd80a542dab6e07a29ee7075bd
Automate the company creation form in Laravel Dusk, generating random data and fake images with faker, filling dropdowns and uploads, and debugging tests in headless mode.
Build a company factory and city factory with faker data, seed categories, and test data using eloquent relationships, then verify the search ui with Laravel Dusk.
Learn to automate search functionality in Laravel Dusk by building a reusable search component with selectors, invoking it across pages, and validating results for selected category and city.
Practice building a Laravel Dusk test to search a company by category and city, verify a single exact result, and use eloquent data with the advanced search component.
This lecture demonstrates automating a single-page app with Laravel Dusk, showing a todo list demo and how to wait for dynamic updates via API instead of page navigation.
Automate testing a dynamic Vue SPA with Laravel Dusk, asserting that a user can edit a to-do list item using the edit form and persist changes after reload.
Automate deleting a to-do list in a Vue SPA with Laravel Dusk: click the trash icon, accept the confirmation, and verify removal from the DOM and database.
Learn to build a small web crawler with Dusk for crawling and scraping, manage a starting domain and a link collection with status, and loop through new links safely.
build a web crawler with Laravel Dusk, visit pages, extract links and href attributes, filter to internal links, remove duplicates, and track visited status while running tests.
Laravel Dusk is a free package available in the Laravel ecosystem. In this course, I utilize the package to automate a demo web application and as we go along in the web automation journey we learn how to use different tips and tricks to make writing automation tests easier.
We also explore different uses of dusk which include web scraping, crawling, and bot-creation.
You'll learn the following
* What is Automation Testing and Why we need Automation Testing?
* How to setup and install Laravel Dusk on the Laravel project.
* Info on using Chrome Driver, Headless Mode, Taking Browser Screenshots, etc.
* How to use Laravel Dusk for basic automation testing.
* Concepts of Pages and Components in Laravel Dusk.
* Using Database Migrations and Factory Methods in Dusk.
* Example of Browser Macros, Dusk Selectors.
* Using Laravel Dusk to Automate a Single Page Application
* Using Dusk to crawl a website.
* Using Dusk to scrape data from a website.
* Using dusk to build browser automation bots.
* Using dusk in the continuous integration tools like Github Actions or Circle CI (TBD)