extentreports-java icon indicating copy to clipboard operation
extentreports-java copied to clipboard

JSON code block has expand/collapse, but they don't work

Open CharlieSnowCode opened this issue 3 years ago • 2 comments

I record the response from an API call and include it in my report as JSON: ExtentReportManager.getTest().info(MarkupHelper.createJsonCodeBlock(context.getAttribute("responseAsJsonObject")));

In the report, the JSON block appears to have toggles to expand/collapse sections but they don't work: image

Also, it would be awesome if the default value for those sections was 'collapsed'. Ref: https://github.com/lmenezes/json-tree/issues/2

CharlieSnowCode avatar Mar 16 '22 17:03 CharlieSnowCode

Update: I noticed that if I click a collapse '-' it doesn't do anything. But if you click a different test and click back it's toggled!

CharlieSnowCode avatar Mar 17 '22 19:03 CharlieSnowCode

I have the same problem, @anshooarora help :)

perkele99 avatar Apr 12 '22 10:04 perkele99