Skip to content

Conversation

@biinari
Copy link
Contributor

@biinari biinari commented Sep 26, 2025

When pest completes, a terminate signal is sent to stop the playwright server. As it is run using a shell (by passing commandline as a string), the shell receives this signal, which it does not forward to playwright.

This means that the playwright run-server command continues running after pest exits.

Solution

Run playwright server command without shell (passing commandline as an array) so that signals can be sent directly to playwright to terminate it.

Related change

Avoid persisting a new port for AlreadyStartedPlaywrightServer if playwright is already set.

Run playwright without shell so that signals can be sent directly to the
process.
If playwright is already defined, do not try to persist again with a new port
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