Laravel Dusk has a concept of page which helps you organize your browser automation tests. When you are working with a browser test and if the functionality / feature to be tested is complex that spans over …
Category: Technical
Laravel Dusk makes it very simple to Automate Authentication (Login / Logout ) of your application. Dusk has provided generic functions so that you don’t have to interact with the Login page and logout link for …
One of the most common ways to debug an error in PHP ecosystem is to dump the variable on the screen, and figure out what is going wrong with it. The most common way we do …
Randomizing your data is always a good approach in Automation Testing. When using Laravel Dusk we can make use of the faker library to randomize the input fields. Let’s dive into the example straightaway Using Faker …
Interacting with database is an important aspect of majority of Laravel Applications. This tutorial covers how you can work with your database in your Laravel Dusk Tests. One of the requirement is the database to be …
The simplest way to implement Stripe on your website is using Stripe Checkout, Accepting card payments via Stripe Checkout is two step process with a client side and server side process. On the client side it …
If you are working with Laravel Eloquent and got following exception -> count(): Parameter must be an array or an object that implements Countable This is probably because of the new version of PHP > 7 …
This article covers How to Use Sqlite File database with Laravel Dusk Testing. Sqlite is pretty easy to use and does not require a database server on your development environment. Start off by creating a separate …
At times you might want to create a seperate environment to run your Laravel Dusk Tests. Dusk provides an easy way for you to use a different environment file. To force dusk to use it’s own …
Laravel Dusk provides you with an option to define custom methods for your browser testing. If you have a set of code that you are re-using in multiple places, it’s good idea to refactor that into …