microsoft / playwright-dotnet

.NET version of the Playwright testing and automation library.
https://playwright.dev/dotnet/
MIT License
2.45k stars 232 forks source link

[Bug]: PW:API Output Seems To Include Malformed Characters #2967

Open Xen0byte opened 1 month ago

Xen0byte commented 1 month ago

Version

1.43.0-beta-1712646596000

Steps to reproduce

  1. Run both UI and API tests with pw:api enabled.
  2. Observe the pw:api output.

Expected behavior

The output should not contain malformed characters.

Actual behavior

UI image

API image

Additional context

Maybe there are some bytes missing?

Environment

- Operating System: Windows 10.0
- CPU: x64
- Browser: All
- .NET Version (TFM): net8.0
Xen0byte commented 1 month ago

Observed in the output of both Visual Studio and Azure DevOps pipelines.

mxschmitt commented 1 month ago

Are you using NUnit or MSTest?

Would it be possible to share a reproduction with us?

Ideally something which we can run locally where we can observe this.

Xen0byte commented 1 month ago

Hi @mxschmitt, I'm using NUnit, more specifically SpecFlow.NUnit. A repro might be tricky because all the tests set up internal things, but I will try to put together something that I can share.

mxschmitt commented 1 month ago

@Xen0byte any updates?

Xen0byte commented 1 month ago

Hi @mxschmitt, I tried to create a distilled version of the tests, but the issue does not reproduce, so I need to do more digging. Based on this, there must be a weird interaction with something, but what that something is could be difficult to determine. I suppose that this issue can probably be closed for now, until I have more information.

I'll leave this code here, to be updated when I discover more information about what's causing the problem: PlaywrightDebug.zip.