Skip to content

Unable to run tests locally (missing Chrome system dependency) #54

@rsilivestr

Description

@rsilivestr

Could not run test locally since current setup relies on Chrome browser system dependency which is not available for my system (Arch Linux).

npx playwright install --with-deps fails with sh: line 1: apt-get: command not found.

An alternative is to use 'chromium' binary that comes with playwright and does not require system-wide installation.

Removing channel: 'chrome' line from config works for me yet type checker complains that 'launch' does not exist in type 'BrowserInstanceOption'.
So I believe more robust solution would be to update vitest and move launch args to playwright lauchOptions as per latest documentation.

Ready to file a PR.

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