playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Bug]: Playwright Test for VSCode on WSL2 not showing tests

Open AndreasPetersen opened this issue 1 year ago • 1 comments

Version

1.42.0

Steps to reproduce

I have a reproducer available for #27009 here.

  1. Open the project in Visual Studio Code with the versions described in the environment section using code .
  2. Open the Testing window in Visual Studio Code an observe the bug

Expected behavior

Tests should be present

Actual behavior

No tests are found.

image

In the extension runtime status the following uncaught errors appear:

Cannot read properties of undefined (reading 'config')

image

Additional context

No response

Environment

npx envinfo --preset playwright

System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (12) x64 Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz
    Memory: 8.96 GB / 15.49 GB
    Container: Yes
  Binaries:
    Node: 18.19.1 - ~/.nvm/versions/node/v18.19.1/bin/node
    npm: 10.2.4 - ~/.nvm/versions/node/v18.19.1/bin/npm
  IDEs:
    VSCode: 1.86.2 - /home/ape/.vscode-server/bin/903b1e9d8990623e3d7da1df3d33db3e42d80eda/bin/remote-cli/code
  Languages:
    Bash: 5.1.16 - /usr/bin/bash
  npmPackages:
    @playwright/test: ^1.42.0 => 1.42.0

Visual Studio Code

Version: 1.86.2 (user setup)
Commit: 903b1e9d8990623e3d7da1df3d33db3e42d80eda
Date: 2024-02-13T19:40:56.878Z
Electron: 27.2.3
ElectronBuildId: 26908389
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.22631

wsl -v

WSL-version: 2.0.14.0
Kerneversion: 5.15.133.1-1
WSLg-version: 1.0.59
MSRDC-version: 1.2.4677
Direct3D-version: 1.611.1-81528511
DXCore-version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows-version: 10.0.22631.3155

Playwright Test for VSCode

v1.0.22

AndreasPetersen avatar Feb 28 '24 11:02 AndreasPetersen

Having the same issue

cwernerc avatar May 07 '24 14:05 cwernerc

Having the same issue, it was working fine for me for a bit but after Windows restart decided not to work again

domantaskr avatar Jul 23 '24 11:07 domantaskr

Same issue here too

shonaloujacks avatar Aug 28 '24 13:08 shonaloujacks