#1853·pest

[Bug]: Browser test not running with ./vendor/bin/pest command

Author: RezaRitmCreated Aug 12, 2026Updated Sep 23, 2026
Labelsbug

What Happened

After I am installing pest using below commands

composer require pestphp/pest-plugin-browser --dev npm install playwright@latest npx playwright install

and create a Browser test directory in the /tests in the root of my project and actually create an exampleTest.php in it and change my /test/Pest.php file to this

pest()->extend(TestCase::class) ->use(RefreshDatabase::class) ->in('Browser', 'Unit');

alsomy laravel project is running php artisan ser

When I enter ./vendor/bin/pest command it wasn't run my Browser tests at all! But Unit tests was running normally.

Browser tests can run with this command normally ./vendor/bin/pest tests/Browser

How to Reproduce

1- install pest composer require pestphp/pest-plugin-browser --dev npm install playwright@latest npx playwright install

  1. change /test/Pest.php file contents to this (line18 ,19)

pest()->extend(TestCase::class) ->use(RefreshDatabase::class) ->in('Browser', 'Unit');

  1. make sure that laravel project is running php artisan ser

  2. Enter ./vendor/bin/pest command

Sample Repository

No response

Pest Version

5.0

PHP Version

8.3

Operation System

Windows

Notes

No response