web-id/laravel-playwright

Laravel Playwright Boilerplate
16,956 84
Install
composer require web-id/laravel-playwright
PHP:^8.0
License:MIT
Last Updated:Mar 14, 2024
Links: GitHub  ·  Packagist
Maintainer: web-id

Laravel + Playwright Integration

This package provides the necessary boilerplate to quickly begin testing your Laravel applications using Playwright.

Installation

If you haven't already installed Playwright; that's your first step.

yarn create playwright

Now you're ready to install this package through Composer. Pull it in as a development-only dependency.

composer require web-id/laravel-playwright --dev

Finally, run the playwright:boilerplate command to copy over the initial boilerplate files for your Playwright tests.

php artisan playwright:boilerplate

That's it! You're ready to go. We've provided an laravel-examples.spec.ts spec for you to play around with it. Let's run it now:

yarn playwright test

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

399,241,428 4,660