Coder Social home page Coder Social logo

Comments (14)

Ksingh22 avatar Ksingh22 commented on August 26, 2024 4

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.

mchequer avatar mchequer commented on August 26, 2024 1

from playwright.

Ksingh22 avatar Ksingh22 commented on August 26, 2024 1

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 or playwright.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.

yury-s avatar yury-s commented on August 26, 2024

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.

mchequer avatar mchequer commented on August 26, 2024

from playwright.

yury-s avatar yury-s commented on August 26, 2024

Hmm, this I can't reproduce. Just to double check, are you doing exact following steps?

  1. npm init playwright newplaywright
  2. cd newplaywright
  3. code .
  4. Click on green triangle on one of the test's gutter to run it.

from playwright.

yury-s avatar yury-s commented on August 26, 2024

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.

3cognito avatar 3cognito commented on August 26, 2024

Faced the same issue today: unresolved.

from playwright.

kalmigs avatar kalmigs commented on August 26, 2024

Same here, new install and got this error

from playwright.

eustachi0 avatar eustachi0 commented on August 26, 2024

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.

kalmigs avatar kalmigs commented on August 26, 2024

Fixed my issue by using the latest node version (previously was on v20.6.0).

from playwright.

kalmigs avatar kalmigs commented on August 26, 2024

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.

danaoairuike avatar danaoairuike commented on August 26, 2024

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.

raymondseahwc avatar raymondseahwc commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.