Skip to content

[Bug]: Symlinked directories inside testDir are ignored in MacOS #32140

Open
@alex-vukov

Description

@alex-vukov

Version

1.46.0

Steps to reproduce

  1. Use MacOS
  2. Clone my repo https://github.com/alex-vukov/playwright-symlink
  3. Run npm install
  4. In a bash or zsh terminal create a symlink so that tests-examples will appear as a subdirectory link inside tests by using ln -s $PWD/tests-examples $PWD/tests/tests-examples.
  5. Run npm run test. Tests inside tests-examples will not be executed through the symlink. If you do the same in Windows they are executed correctly.

Expected behavior

I expect the same behaviour in Windows and MacOS. The symlinked tests should be executed in both OS.

Actual behavior

The tests in the symlinked directory are not executed under MacOS but are executed in Windows.

Additional context

No response

Environment

System:
    OS: macOS 14.3.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 1.14 GB / 32.00 GB
  Binaries:
    Node: 18.18.0 - ~/.nvm/versions/node/v18.18.0/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v18.18.0/bin/npm
    pnpm: 9.7.0 - ~/.nvm/versions/node/v18.18.0/bin/pnpm
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: ^1.46.0 => 1.46.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions