Comments (14)
I had the same issue. I renamed the file from Playwright.config.js to Playwright.configs.js and it worked. Not getting "Internal error: unable to connect to the test serverplaywright"
from playwright.
from playwright.
I had the same issue. I renamed the file from Playwright.config.js to Playwright.configs.js and it worked. Not getting "Internal error: unable to connect to the test serverplaywright"
It works for me. But why ?
I had the same issue. I renamed the file from Playwright.config.js to Playwright.configs.js and it worked. Not getting "Internal error: unable to connect to the test serverplaywright"
This will not fix the issue, as playwright will not be able to see your config (which the correct filename is
playwright.config.ts
orplaywright.config.js
.Just checked, the
test tab
will not display your tests and will ignore your config with playwright.configs.js
I have another extension of test runner installed, so that's why test tab was not missing. However you are correct, I have updated the node version and that error is not happening.
Thanks!
from playwright.
Does it reproduce if you open VS Code in a project created via npm init playwright new_project
?
There might be some race condition during the steps you run. At step 3 do you install playwright via VSCode command or by running a command in terminal? When do you initialize npm package?
from playwright.
from playwright.
Hmm, this I can't reproduce. Just to double check, are you doing exact following steps?
npm init playwright newplaywright
cd newplaywright
code .
- Click on green triangle on one of the test's gutter to run it.
from playwright.
Closing this report for now. Feel free to file another issue if reinstalling doesn't help or you discover something that could help us reproduce it locally.
from playwright.
Faced the same issue today: unresolved.
from playwright.
Same here, new install and got this error
from playwright.
I have encountered this issue on my Windows 10 pc. It works fine if you are using WSL.
I have a laptop that runs Windows 11, VS Code 1.90.2 and WSL2 -> Playwright works fine.
I have a pc that runs Windows 10, VS Code 1.90.2 without WSL2, when I create a new fresh Playwright install, the playwright config file throws an error saying "unable to connect to the test server". This happens on any new projects.
from playwright.
Fixed my issue by using the latest node version (previously was on v20.6.0).
from playwright.
I had the same issue. I renamed the file from Playwright.config.js to Playwright.configs.js and it worked. Not getting "Internal error: unable to connect to the test serverplaywright"
This will not fix the issue, as playwright will not be able to see your config (which the correct filename is playwright.config.ts
or playwright.config.js
.
Just checked, the test tab
will not display your tests and will ignore your config with playwright.configs.js
from playwright.
I had the same issue. I renamed the file from Playwright.config.js to Playwright.configs.js and it worked. Not getting "Internal error: unable to connect to the test serverplaywright"
It works for me. But why ?
from playwright.
Hi, may i check which node version you are on that resolve this issue?
without having the need to rename the "playwright.config.ts" to "playwright.configs.ts"
from playwright.
Related Issues (20)
- [Bug]: older test using playwright 1.43.1 no longer works HOT 2
- [Feature]: Ability to throttle CPU HOT 2
- [Bug]: In master, all the tests are failing HOT 1
- [Bug]: browserType.launch error when test running with auth setup and second error "SyntaxError: Unexpected token 'with' Error: No tests found." where json imports and executing spec HOT 6
- [Docs]: Confusing documentation about code coverage HOT 1
- [Question]Is it possible in Playwright to have some test cases run in parallel, while having other test cases executed multiple times by different workers?
- [Feature]: Add font preview in network tab (ui-mode)
- [Bug]: HOT 1
- [Bug]: Playwright extension does not recognize the tests from a new project HOT 6
- [Bug]: Please Re-Open https://github.com/microsoft/playwright/issues/5767 It Was Not Fixed HOT 4
- [Bug]: in playwright TS CustomReporter onTestBegin not working HOT 1
- [Feature]: Allow traces in test-results folder to have custom file extension e.g. `.pwtrace.zip`
- [Bug]: Intermittent "Object doesn't exist" Error During HTML to PDF Conversion Due to Async Request Interception After Playwright Object Closure HOT 1
- [Bug]: "URL did not settle" error in azureportal-test framework's navigateTo function when running e2e tests in mock replay mode HOT 1
- [Bug]: Type Inference Issue in Playwright 1.46.1 with base.extend HOT 8
- [Bug]: Local storage items set via `browser.newContext()` missing for an iframe in Chromium HOT 3
- [Feature]: Custom error for strict mode violations
- [Feature]: Support hardware-based client certificate authentication via public cert and signature callback HOT 6
- [Bug]: Playwright's browsers dont behave as regular browsers
- [Docs]: add use case for closing multiple elements like toast notifications HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright.