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

enhancement: auto expand additional context #217

Closed
opub opened this issue Dec 7, 2017 · 4 comments
Closed

enhancement: auto expand additional context #217

opub opened this issue Dec 7, 2017 · 4 comments

Comments

@opub
Copy link

opub commented Dec 7, 2017

I need to save a copy of the report to a PDF with all of my additional context screenshots, etc. visible. Is there an option to have the context visible by default without manually having to click and expand each?

This is a great product! Keep up the good work. Thanks.

@adamgruber
Copy link
Owner

Thanks for the feedback @opub!

Unfortunately there's currently no easy way to expand all tests. There's also no setting to default them to an expanded state and I'm not sure I'd add something like that. I'm not sure how many tests you have but for each test the report does not render the expanded info into the DOM initially. The render only happens upon clicking. This is important because it significantly cuts down on the number of DOM nodes that need to be rendered. Since rendering in the DOM is typically the slowest operation, this can save many seconds of load time for large test suites.

A possible solution would be to add a button that toggles expansion for all tests. I'll have to think through this a bit to see if it makes sense and where it would live.

@opub
Copy link
Author

opub commented Dec 8, 2017

Understood. What if there was a way to add a custom script or HTML to the report template? That could at least provide the hook to have my own expansion code execute when the report is opened. Something similar could also be useful for people looking to adjust the layout or branding of the report.

@adamgruber
Copy link
Owner

The report has been carefully designed and thought out to optimally present the results of a test run. There are no plans to support adjusting the layout or adding custom branding. If this is something you require, you could add some kind of post-processing after the report has been generated.

@ksvvandana
Copy link

ksvvandana commented Mar 4, 2021

Is this enhancement accepted and merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants