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]: Error running tests depending on the location of the project #34396

Closed
brunojbarros opened this issue Jan 19, 2025 · 2 comments
Closed

Comments

@brunojbarros
Copy link
Contributor

Version

1.49.1

Steps to reproduce

  1. Create a new folder for the project in C:\
  2. Run yarn init
  3. Run yarn create playwright
  4. Run yarn playwright test

Expected behavior

Tests should be run

Actual behavior

I get the following error:

PS C:\my-project> yarn playwright test
yarn run v1.22.22
$ C:\my-project\node_modules\.bin\playwright test
/usr/bin/bash: line 1: C:my-projectnode_modules.binplaywright: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Additional context

  • This happens depending on the location of the project, for example, I do not have this problem if the project folder is on the desktop.
  • This also happens with older versions of playwright
  • I am able to run the tests using node ./node_modules/playwright/cli.js test

Environment

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 1.94 GB / 15.79 GB
  Binaries:
    Node: 20.18.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.12.0 - ~\AppData\Local\pnpm\pnpm.EXE
  IDEs:
    VSCode: 1.96.4 - C:\Users\BrunoBarros\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
  Languages:
    Bash: 5.2.15 - C:\Program Files\Git\usr\bin\bash.EXE
  npmPackages:
    @playwright/test: ^1.49.1 => 1.49.1
@brunojbarros brunojbarros changed the title [Bug]: Error running tests [Bug]: Error running tests depending on the location of the project Jan 19, 2025
@pavelfeldman
Copy link
Member

Something wrong with your Yarn - it is calling /usr/bin/bash (Linux) on Windows

@agg23
Copy link
Contributor

agg23 commented Jan 29, 2025

Closing as part of the triage process since it seemed stale. Please create a new issue with a detailed reproducible or feature request if you still face issues.

@agg23 agg23 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2025
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

3 participants