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]: In VS Code Install Playwright command creates -- directory on Windows 10 #34266

Open
ubuntu-prasad opened this issue Jan 9, 2025 · 1 comment

Comments

@ubuntu-prasad
Copy link

ubuntu-prasad commented Jan 9, 2025

Version

1.1.12

It uses latest version of Playwright. Above mentioned version 1.1.12 is for VS Code extension Playwright Test for VSCode

Steps to reproduce

Steps to reproduce issue: (Operating System: Windows 10 Pro)

  1. Create Empty Directory or use any existing ReactJS project
  2. Open it in VS Code and install extension Playwright Test for VSCode
  3. Open "Command Palette" in VS Code ("Ctrl + Shift + P")
  4. Type "Install Playwright" and press Enter
  5. Accept Defaults on Next screen and press enter
  6. It will automatically opens Terminal and runs command npm init playwright@latest --yes '--' '--quiet' '--browser=chromium' '--browser=firefox' '--browser=webkit' '--gha'
  7. It shows below message on terminal
      > npx
      > create-playwright '--' '--quiet' '--browser=chromium' '--browser=firefox' '--browser=webkit' '--gha'
      
      Getting started with writing end-to-end tests with Playwright:
      Initializing project in ''--''
      ? Do you want to use TypeScript or JavaScript? ... 
      > TypeScript
        JavaScript
    
  8. Accepts default options
  9. After completing installation, it created all Playwright project structure inside -- directory
  10. Find Attached screenshot for reference

Image
Image
Image
Image
Image
Image
Image
Image

Expected behavior

Install Playwright command in VS Code should initialize project in . or current root directory similar to other operating systems.

Actual behavior

Install Playwright command in VS Code initializes project in -- directory which is wrong.

Additional context

No response

Environment

System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
    Memory: 1.13 GB / 7.80 GB
  Binaries:
    Node: 22.12.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.15.0 - C:\Program Files\nodejs\pnpm.CMD
  IDEs:
    VSCode: 1.96.2 - C:\Program Files\Microsoft VS Code\bin\code.CMD
  Languages:
    Bash: 5.1.16 - C:\WINDOWS\system32\bash.EXE
@Skn0tt
Copy link
Member

Skn0tt commented Jan 9, 2025

Thanks for the detailed report! I'll take a look into fixing this.

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

2 participants