magdy-hakam/laravel-testids

There is no license information available for the latest version (dev-main) of this package.

Laravel package to add data-testid attribute to <a> and <input> tags in Blade files

dev-main 2023-07-03 09:04 UTC

This package is auto-updated.

Last update: 2024-06-03 10:57:41 UTC


README

Laravel TestIDs is a Composer package that provides a custom Artisan command to add a data-testid attribute to <a> and <input> tags in Laravel Blade files. This package simplifies the process of adding unique identifiers to elements for automation testing purposes.

Installation

You can install the package via Composer by running the following command in your Laravel project's root directory:

composer require your-vendor/laravel-testids

Usage

Once the package is installed, you can run the following Artisan command to add the data-testid attribute to and tags in your Blade files:

php artisan testids:add