Skip to content

Add Playwright server support and improve Laravel detection#218

Open
Tinywan wants to merge 3 commits into
pestphp:4.xfrom
Tinywan:4.x
Open

Add Playwright server support and improve Laravel detection#218
Tinywan wants to merge 3 commits into
pestphp:4.xfrom
Tinywan:4.x

Conversation

@Tinywan
Copy link
Copy Markdown

@Tinywan Tinywan commented May 17, 2026

No description provided.

Tinywan and others added 3 commits May 17, 2026 10:12
Allow connecting to an already-running Playwright server instead of
starting a local one. This enables setups where Playwright runs on the
host machine while Pest runs inside a container (e.g. Docker).

Usage via configuration:
  pest()->browser()->withPlaywrightServer('http://192.168.1.100:9999')

Usage via environment variable:
  PEST_BROWSER_PLAYWRIGHT_URL=http://192.168.1.100:9999

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…tection

The `app_path()` function is also defined by webman and other frameworks,
causing false Laravel detection which leads to `config()` call errors.
Using `class_exists(Illuminate\Foundation\Application::class)` is a more
reliable check.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant