cypress-debugger icon indicating copy to clipboard operation
cypress-debugger copied to clipboard

[Player] console output generated by Tests gets properly written into dumps, but won't be shown by Player

Open BloodyRain2k opened this issue 1 year ago • 0 comments
trafficstars

Before opening, please confirm:

  • [X] I have searched for duplicate or closed issues and discussions.
  • [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • [X] I acknowledge that I will attach a full debug log, otherwise the issue will be closed with no response.

Environment information

all the same as #75

Describe the bug

As noted at the end of #75, console output generated by Tests rather than the app/site being tested will be properly written to the dump, but the Player won't render it at all. Even though it is including these logs in the number of the "Console" tab.

I've tried to figure out where it's going wrong, but I've not found the repo for the Player yet, if it even has a public one, and digging through React fibers on the browser end is insanely tedious so I didn't get anywhere yet.

Expected behavior

I am unsure which behavior is "normal", excluding logs generated by Tests or including every log that's "known" and it's just not properly showing them.

But I would expect that the number of entries shown for the "Console" tab would be the actual number of entries it will show me. So I'd expect that to include the output of Tests too. Maybe it could be marked as such to differentiate. Maybe even add a selector that allows hiding of Test output or up to which level.

For example: "App: Info, Log, Warn, Error - Test: Warn, Error", but I'm unsure how many other people actually use console logging within tests for troubleshooting. I mainly did it because I initially only used Open Mode and it was helpful to verify that the Test was actually using the right objects and such.

Command and Setup

all the same as #75

Full log and debug output

N/A because this is an issue with the Player.

BloodyRain2k avatar Dec 08 '23 12:12 BloodyRain2k