-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Last Good Version
1.56.1
First Bad Version
1.57
Steps to reproduce
Configure HTML reporter in playwright config file:
export default defineConfig({
reporter: [['html']],
// ...
or checkout this example repo: https://github.com/Reeska/playwright-examples
Run any playwright test using test runner of WebStorm.
Expected behavior
HTML reporter opens test report.
Actual behavior
HTML reporter doesn't open test report when running playwright tests through WebStorm / Intellij / JetBrains IDEs.
Additional context
This "regression" started from v1.57 and was caused by this PR: #38044
I understand the original goal, but it causes regression in JetBrains IDEs.
A quick fix is to force process.stdin.isTTY = true but I think there could be a better solution.
Maybe it possible to detect that a test is running inside an IDE ? Or playwright config or HTML reporter could have an option to open test reporter even if TTY is undefined.
I see that Playwright Webstorm plugin set PW_TEST_REPORTER environment variable it could help.
What do you think ?
Environment
System:
OS: macOS 26.3.1
CPU: (16) arm64 Apple M4 Max
Memory: 2.61 GB / 64.00 GB
Binaries:
Node: 22.11.0 - /Users/thomas/.nvm/versions/node/v22.11.0/bin/node
Yarn: 1.22.22 - /Users/thomas/.nvm/versions/node/v22.11.0/bin/yarn
npm: 10.9.0 - /Users/thomas/.nvm/versions/node/v22.11.0/bin/npm
IDEs:
WebStorm: 2025.3.3
Languages:
Bash: 3.2.57 - /bin/bash