Download the PHP package tranquil-tools/laravel-pest-recorder without Composer

On this page you can find all versions of the php package tranquil-tools/laravel-pest-recorder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-pest-recorder

Laravel Pest Browsertest Recorder

This package introduces the php artisan pest:record command which provides an interactive way to generate a base for your Pest Browsertests.

Running this command allows you to perform actions in the browser which will be translated into Pest tests. This process works by using the npx playwirght codegen command. You can use the Codegen toolbar to add assertions:

By default, a development server (php artisan serve) will be started, this can be disabled with the --server=false flag.

After closing the browser you'll be prompted with a question if you want to expand an existing test file or create a new one, and to give your new test a name:

Installation

You can install the package via composer:

You can publish the config file with:

The content of the published config can be viewed here.

Usage

or:

Available flags / options

The environment variable, obliged when using --migrate-fresh=true

Provide a URL which will be opened in the browser as starting point for your tests. When omitted, your .env APP_URL setting will be used.

Open a specific URI path when the recording browser starts. The path is appended to the base URL. The initial navigation will automatically generate $page = visit('/...'); in the test.

Record and store Playwright browser auth state under a named key (e.g. user). The state is saved to storage/app/tmp/auth/{name}.json (configurable via acting_as_storage_path in the config).

Start a development server (php artisan serve) for the given environment, URL and port.

Run php artisan migrate:fresh before starting the server? Specifying --env=... is mandatory.

Seed the database after migrate:fresh? This option is only available when using --migrate-fresh=true.

Set the viewport dimensions, or use fullscreen (the default) to detect the primary screen resolution. Detected via system_profiler (macOS), xdpyinfo/xrandr (Linux), or PowerShell (Windows). Falls back to 1920,1080 if detection fails. Ignored when --device is set.

Emulate a specific device, including its viewport, user agent and touch settings. Overrides --viewport-size. Run npx playwright codegen --help for the full list of supported device names.

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Pull requests are welcome!

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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


All versions of laravel-pest-recorder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tranquil-tools/laravel-pest-recorder contains the following files

Loading the files please wait ...