cypress icon indicating copy to clipboard operation
cypress copied to clipboard

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

Open TSC-Martin opened this issue 2 years ago • 4 comments

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

TSC-Martin avatar Jan 06 '23 11:01 TSC-Martin

Hi @martinsik , Unfortunately at this time we do not fully support WSL or WSL2. Are you seeing the same behavior on native linux?

nagash77 avatar Jan 06 '23 14:01 nagash77

I'm seeing this behaviour inside our docker cotainers, which run on WSL2 during development but then on a native linux box for our overnight tests. That box is reporting as 5.15.0-53-generic.

ghost avatar Jan 09 '23 15:01 ghost

@TSC-Martin I was able to reproduce this locally. Thanks

astone123 avatar Jan 12 '23 14:01 astone123

I have exactly the same problem

Ubuntu 22.04.1 LTS node - v18.13.0

Снимок экрана 2023-04-10 в 09 20 52

Sitronik avatar Apr 10 '23 06:04 Sitronik