-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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] Test execution gets stuck when running through Playwright extension in Vscode #20399
Comments
You seem to be creating a brand new browser when you already have a browser with an opened page created for you by the test harness. You might want to specify the launch arguments in the playwright config and just use the provided page. |
In my scenarios I need to have one browser with default args (defined in playwright.config) and one more with another args to get different audio/media streams etc. |
Do you have a |
Yes. |
For whoever has the same issue and doesn't mind the downgrade, version |
Ok, trying to reproduce this, but things work for me. Created a new project with these files and things work. Note though that your config is broken - it has malformed ternary operator as a reporter value. |
Yes, there was a mistake in config. I fixed it. |
Context:
Code Snippet
Test:
Playwright config:
Describe the bug
When I run this test through Playwright extension in Vscode test execution gets stuck on await chromium.launch().
But when I run it through: playwright test --grep 'Reproduce defect' the test works as expected and opens new chromium inside the test
The text was updated successfully, but these errors were encountered: