webpatser / fledge-pest-browser
Pest plugin to test browser interactions, ported to fledge-fiber for Fledge (PHP 8.6, no Revolt)
Requires
- php: ^8.6
- ext-sockets: *
- pestphp/pest: ^5.2.1
- pestphp/pest-plugin: ^5.0.0
- symfony/process: ^8.1.7
- webpatser/fledge-fiber: ^13.45.0.0
Requires (Dev)
- livewire/livewire: ^4.4.7
- nunomaduro/collision: ^8.9.5
- orchestra/testbench: ^11.3
- pestphp/pest-dev-tools: ^5.0.0
- pestphp/pest-plugin-laravel: ^5.0.1
- pestphp/pest-plugin-type-coverage: ^5.0.2
- webpatser/fledge-framework: ^13.45.0.3
Suggests
None
Provides
None
Conflicts
- pestphp/pest: <5.0.0
Replaces
- pestphp/pest-plugin-browser: 5.2.*
README
A Fledge fork of the Pest browser plugin. It runs on webpatser/fledge-fiber and webpatser/fledge-loop instead of amphp and revolt/event-loop. fledge-loop conflicts with Revolt (one event loop per process), so the upstream plugin cannot be installed next to current Fledge.
Install
composer require --dev webpatser/fledge-pest-browser
The package replaces pestphp/pest-plugin-browser and keeps the Pest\Browser\ namespace, so your tests stay unchanged. Remove the upstream plugin from your require-dev when you swap.
Requires PHP 8.6.
Versioning
5.2.0.1 is Fledge patch 1 on top of upstream 5.2.0. The first three segments match upstream; the fourth is bumped for Fledge-only changes.
Native MySQL/MariaDB driver caveat
The browser server runs in-process. On fledge-fiber's fledge-mysql-native and fledge-mariadb-native drivers, request fibers get their own connection and cannot see the test's uncommitted transaction, so RefreshDatabase and DatabaseTransactions do not work. Use DatabaseTruncation, or run browser tests on the stock driver.
See ORIGINS.md for where this fork comes from and CHANGELOG.md for releases.
Upstream README
This repository contains the Pest Plugin for Browser. To start testing your application with Pest, visit the main Pest repository and the Pest docs.
Pest is open-sourced software licensed under the MIT license.