Skip to content

WebKit browser version reported as 0 when linking to a globally installed playwright-webkit package #25375

Open
@ghost

Description

Current behavior

If you use npm link playwright-webkit to link to a version of playwright-webkit previously installed globally via npm install -g playwright-webkit then the version reported by Cypress is shown as 0

(Run Starting)

┌─────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 12.3.0 │
│ Browser: WebKit 0 (headless) │
│ Node Version: v16.16.0 (/usr/local/bin/node) │

Relevant debug output reports:

cypress:server:browsers:utils searching for browser { nameOrPath: 'webkit', filter: { name: 'webkit', channel: 'stable' }, knownBrowsers: [ { name: 'webkit', channel: 'stable', family: 'webkit', displayName: 'WebKit', version: '0', path: '/root/.cache/ms-playwright/webkit-1751/pw_run.sh', majorVersion: '0', warning: 'WebKit support is currently experimental. Some functions may not work as expected.' } ] } +2s

This is in contrast to what is reported when the npm install --save-dev playwright-webkit command is used:

(Run Starting)
┌─────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 12.3.0 │
│ Browser: WebKit 16 (headless) │
│ Node Version: v16.16.0 (/usr/local/bin/node) │

Relevant debug output reports:

cypress:server:browsers:utils searching for browser { nameOrPath: 'webkit', filter: { name: 'webkit', channel: 'stable' }, knownBrowsers: [ { name: 'webkit', channel: 'stable', family: 'webkit', displayName: 'WebKit', version: '16.4', path: '/root/.cache/ms-playwright/webkit-1751/pw_run.sh', majorVersion: '16', warning: 'WebKit support is currently experimental. Some functions may not work as expected.' } ] } +2s

Desired behavior

The version reported by using the npm link command should reflect that outputted by the npm install command.

Test code to reproduce

Not entirely sure this would help in this case as it's related to environment setup.

Cypress Version

12.3.0

Node version

16.16.0

Operating System

5.10.102.1-microsoft-standard-WSL2

Debug Logs

See above

Other

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    E2EIssue related to end-to-end testingTriagedIssue has been routed to backlog. This is not a commitment to have it prioritized by the team.experiment: webkitIssues when using experimentalWebkitSupport

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions