Skip to content

bug(tooling): npm run test:package fails without a system Google Chrome #4

Closed as not planned

Description

@Dhananjay-alt

scripts/test-package.mjs calls chromium.launch({ channel: 'chrome' }). On machines with only Playwright's bundled Chromium, npm run check (and therefore prepublishOnly) fails with Chromium distribution 'chrome' is not found.

Proposed fix (PR to follow): fall back to chromium.launch() when the Chrome channel isn't available.

Activity

  1. Dhananjay-alt commented on Nov 21, 2026

    @Dhananjay-alt
    ContributorAuthor

    Fixed in #10.

    test:package now falls back to Playwright's bundled Chromium when system Chrome isn't installed (commit f0962c9).

  2. Samarth208P commented on Nov 21, 2026

    @Samarth208P
    Owner

    Confirmed that the package test explicitly launches the chrome channel. Chrome stable is a documented development prerequisite, so this is a portability request for contributors who already have Playwright Chromium installed. I’d keep it low priority. If we add a fallback, it should handle the missing browser executable specifically and still surface worker or browser-test failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions