Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CharlieSnowCode opened this issue Mar 16, 2022 · 2 comments
Open

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

CharlieSnowCode opened this issue Mar 16, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@CharlieSnowCode
Copy link

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: lmenezes/json-tree#2

@CharlieSnowCode
Copy link
Author

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 CharlieSnowCode changed the title JSON code block had expand/collapse, but they don't work JSON code block has expand/collapse, but they don't work Mar 18, 2022
@perkele99
Copy link

I have the same problem, @anshooarora help :)

@anshooarora anshooarora added the enhancement New feature or request label Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants