Skip to content
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 not working and not showing run icons inside the VSCODE(1.89.1) editor. #30909

Closed
Balakumar777 opened this issue May 20, 2024 · 11 comments

Comments

@Balakumar777
Copy link

Version

1.1.1 and above

Steps to reproduce

Install the playwright version above 1.1.1 with VSCODE version 1.89.1

Expected behavior

Should show the test execution icons and should work as expected.

Actual behavior

It is not show the test cases in the Playwright extension treeView and throws the error like below
image

Additional context

No response

Environment

Windows 10.0.19045
Vscode 1.89.1
Chormium 120.0.6099.291
Electron 28.2.8
Node JS 18.18.2
@mxschmitt
Copy link
Member

Which Playwright version are you using? Could you provide us your repository structure? Does it happen with a newly created project?

@Balakumar777
Copy link
Author

Balakumar777 commented May 20, 2024

Which Playwright version are you using? Could you provide us your repository structure? Does it happen with a newly created project?

@mxschmitt I am using the playwright version 1.1.4. The issue happened in the existing project, I did not createa new Playwright project so far. I will try to create a new one and check this issue exists. I've attached the sample below, But it is working perfectly on version 1.0.22
image

@x-typo
Copy link

x-typo commented May 20, 2024

I'm getting the same thing. Had to reinstall to 1.0.22 version to get it to work.

@pavelfeldman
Copy link
Member

What are your Playwright and VSCode extension versions?

@Balakumar777
Copy link
Author

Balakumar777 commented May 21, 2024

What are your Playwright and VSCode extension versions?

@pavelfeldman My Vscode version is 1.89.1 and the Playwright version is 1.1.4. FYI) This issue is happens in all previous versions of playwright .

  • 1.1.1
  • 1.1.2
  • 1.1.3
  • 1.1.4

image
image

@mxschmitt
Copy link
Member

mxschmitt commented May 21, 2024

Which Playwright (NPM) version are you using? npx playwright —version

does it happen in a new project?

could you share an example project with us, if not?

@Balakumar777
Copy link
Author

Balakumar777 commented May 21, 2024

@mxschmitt I think after I update the playwright version into 1.44.0 then it starts working, the thing is in my existing project I am using some older version of playwright, so after I updated the playwright vscode extension it is not working properly.

  1. I think we can fix this issue by update the playwright to latest version globally and update the extension to latest version of 1.1.5.
  2. Upgrade the playwright version in the existing playwright test project, from older version into newer version and update the extension to latest version will solve the issue.

NOTE:

If anyone using playwright/test in your package.json. make sure it updated with latest version to make it work.

@x-typo
Copy link

x-typo commented May 21, 2024

Updated the playwright version dependencies to 1.44.0 and then updated the extensions to 1.1.5.

Still doesn't work. Unable to run tests in the Testing section.

Rolled back to 1.0.22 to get it to work.

@mxschmitt
Copy link
Member

@x-typo we need a reproduction and more details in order to act on it. Would it be possible to share your repository with us? Does this happen on a newly created Playwright project?

@mathieu-fournier
Copy link

I had the same problem with 1.33.0.
Updating to 1.44.0 fixed the issue.

All the issues I had before :
Red : The test does not show up in the test explorer.
When I hit the debug button (Green), Two tests are started (Blue), And it goes on forever (Pink), I must close VSCode for it to end.
In Yellow : note I only have one playwright config. I've seen errors with multiple config before.
image

Hope it helps resolving the issue. Keep up the good work. playwright is great (: !

@pavelfeldman
Copy link
Member

These should be fixed in the latest extension. Please file a new issue for any outstanding problems!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants