We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
testDir
1.49.1
Follow the steps in the reproduction repo: https://github.com/vitalets/playwright-issues/tree/invalid-location
In the error output Playwright does not append testDir to the error location. Due to that, I'm navigated to the wrong file by CMD+Click:
Error location contains full path to the failed test, relative to the project root.
1 failed test/sample.test.ts:9:1 › my test ─────────────────────────────────────────────────────────────────
Error location contains path, relative to the testDir:
1 failed sample.test.ts:9:1 › my test ─────────────────────────────────────────────────────────────────
If I remove testDir from Playwright config and it uses default testDir, then error location contains testDir and navigation by CMD+Click is correct.
System: OS: macOS 14.5 CPU: (10) arm64 Apple M1 Pro Memory: 77.61 MB / 16.00 GB Binaries: Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm Languages: Bash: 3.2.57 - /bin/bash npmPackages: @playwright/test: ^1.49.1 => 1.49.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
1.49.1
Steps to reproduce
Follow the steps in the reproduction repo: https://github.com/vitalets/playwright-issues/tree/invalid-location
In the error output Playwright does not append
testDir
to the error location. Due to that, I'm navigated to the wrong file by CMD+Click:Screen.Recording.2024-12-21.at.14.19.59.mp4
Expected behavior
Error location contains full path to the failed test, relative to the project root.
Actual behavior
Error location contains path, relative to the
testDir
:Additional context
If I remove
testDir
from Playwright config and it uses defaulttestDir
, then error location containstestDir
and navigation by CMD+Click is correct.Environment
The text was updated successfully, but these errors were encountered: