Console print twice on playwright tests

Hello, when any stdout is executed using the Jetbrains playwright plugin (Test Automation Plugin), it is printed twice. Do you have any ideas on where to begin to debug this problem?

The same project at a different IDE won't reproduce the problem.

0
Thank you for contacting us!

You can monitor the progress of this issue at https://youtrack.jetbrains.com/issue/AQUA-990/Playwright-test-results-output-is-duplicated. Please keep an eye on it for any updates.
0

That console printing twice issue in Playwright tests often happens when multiple event listeners are unintentionally attached or when before Each hooks aren’t properly isolated between tests. You might want to check if your test setup or global config initializes logging twice especially when using page on console. Cleaning up listeners after each test usually fixes it. I ran into something similar while debugging 3D printing scripts for G-code generation consistency in event handling matters there too. When I was testing with Orca Slicer, I noticed its debugging and slicing logs behave predictably because it optimizes command execution efficiently. Keeping that same principle in Playwright’s lifecycle can prevent duplicate outputs. Go Here

-1

请先登录再写评论。