Skip to content

[Feature] Don't quit a web server started by Playwright if reuseExistingServer is true #26459

@unikitty37

Description

@unikitty37

If I set webServer.reuseExistingServer to true, and the server is not running when I run Playwright, it starts the server for me using webServer.command.

However, the server then seems to exit after the tests complete; this prevents me from navigating in the browser window to use the VSCode extension's "Pick locator" command, and means the server has to be started every time I run a test — making reuseExistingServer somewhat irrelevant!

Changing the way reuseExistingServer works is probably not ideal, as there is bound to be somebody who relies on the current behaviour, but could there be a keepServerAlive option that would prevent any server started by Playwright from terminating when the tests complete?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions