New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

web-id/laravel-playwright

Laravel Playwright Boilerplate
16,964 84
Install
composer require web-id/laravel-playwright:dev-main
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

saucebase/laravel-playwright

Blends Laravel and Playwright into seamless E2E tests — factories, queries, arti...

8,646 7
doctrine/dbal

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

660,512,042 9,702
laravel/framework

The Laravel Framework.

617,629,957 34,997
laravel/tinker

Powerful REPL for the Laravel framework.

524,145,802 7,444
laravel/serializable-closure

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

442,489,569 607