New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Playwright VS Code extension - No tests have been found in Test Explorer #19863
Comments
I also had the same problem |
I had the same issue. Installing system-wide |
Fixed in the next version. |
Hi! I've updated the package to the version I've also updated:
I also tried removing |
@pavelfeldman updating to v1.30 temporary fixed the issue but after a restart of VSCode I have it again. Same as @Shylpx |
I have the same issue, node installed via nvm, no system installation, @playwright/test 1.31.0, vscode extension 1.0.7 on a Mac. I have other extensions installed as well that use Node (eslint, jest), they seem to find node/npm correctly somehow |
I currently have this same issue. I'm able to get the Test Explorer to show tests when I use nvm to install node, but when I use a snap node version the Test Explorer does not show any tests and displays a message asking me to install Playwright. Through strace I believe that the snap version is getting an error when a child node process is attempting to write to the standard out:
I think this is an issue where the child node process is prohibited from inheriting file descriptors from its parent, and thus doesn't have access to the parent nodejs' standard io. What I see in VSCode is the following:
And when I run the offending code in the VSCode console it will still work in the snap version:
Currently my workaround is to use nvm to install nodejs for me, however, I wanted to post what I ran into on this thread in case someone else is running into a similar issue. |
Context:
nvm
), withnpm
8.11.0 andyarn
1.22.5snap
, but I also removed it and installed it withapt-get
, but same result)Describe the bug
I've followed the steps in https://playwright.dev/docs/getting-started-vscode to install the VS Code Extension, but it doesn't matter how many times I refresh the tests, I always get the
No tests have been found in this workspace yet
message, and no green arrows to run isolated tests:Things that are working
Everything else seems to be working properly:
tests
andtests-examples
were automatically created, together with the config file (playwright.config.ts
):npx playwright test example
Testing
tab, and I can even record a new test:The text was updated successfully, but these errors were encountered: