-
Notifications
You must be signed in to change notification settings - Fork 779
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
HTML Reporter: Make it more obvious why diff is suppressed #795
HTML Reporter: Make it more obvious why diff is suppressed #795
Conversation
Ideally it says what the current max depth is and provides a link to rerun with a higher max depth or no max depth. |
@scottgonzalez I've updated the PR. Screenshot:
@jzaefferer Please provide your valuable suggestions as well. |
I think the tests are failing because of the timeout. How can I re-run the tests? |
message += "<tr class='test-message'><th>Message: </th><td>" + | ||
"Diff suppressed as the depth of object is more than current max depth (" + | ||
QUnit.config.maxDepth + ").<p>Hint: Use 'QUnit.dump.maxDepth' to run " + | ||
" with a higher max depth or <a href='?maxDepth=-1'>" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use setUrl()
to generate QUnit specific URLs that include other URL parameters already present (filters etc.).
@shivamdixit thanks for the PR. I have very little bandwidth to review anything this week. I added one comment above. I'd like to discuss the general concept for tackling this issue, but that has to wait a few days. |
That screenshot looks great. You should wrap Fixing the styling of the rerun link should be very simple, but let's wait for the team to discuss. |
@jzaefferer @scottgonzalez Thanks for your suggestions. I've updated the code. |
Let's add some CSS to display the Rerun link properly, just change |
LGTM |
If the depth of an object is more than 'Max Depth' specified in
Qunit.dump
then the diff is not displayed. This behavior is confusing. This PR will display a message to the user so that user knows why it is not displayed.Refer: #793 (comment)
I'm confused with what text to display to the user since the user might not be aware of max depth. Any suggestions?
Screenshot:
