Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Setting BROWSER might break jest-playwright #531

@thernstig

Description

@thernstig

Describe the bug
When running playwright in a VS Code terminal when connected to an ssh remote, it fails. The problem might however be "bigger" than just VS Code.

To Reproduce
Steps to reproduce the behavior:

  1. Connect to repository on an ssh remote with VS Code and try to run a playwright suite in the VS code terminal.

Expected behavior
For it to run.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. macOS or Windows] Ubuntu 20.04
  • Playwright version [e.g. 1.1.1] 1.6.2
  • jest-playwright version [e.g. 1.0.0] 1.3.1

Jest configuration (Either in the package.json > jest or in the jest.config.js):
n/a

Additional context
This might be a problem when someone has set BROWSER for any other purpose on their VM. I don't think jest-playwright should look at this environment variable. Possibly you could look at PLAYWRIGHT_BROWSERS_PATH to get browser from there, but I am not sure that would work either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions