-
Notifications
You must be signed in to change notification settings - Fork 470
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
Ability to suppress logging full DOM #360
Comments
I would like to use the opportunity and make the verbosity a bit more granular. Most of the time it isn't necessary to log the full dom of the available roles. A shallow log for roles + their top level element with attributes is usually enough. |
On a similar note, it would be nice to trim out react's internal comments like They are important for react to track it's nodes but not important for seeing what's rendered (at least in most cases). This can be easily achieved using ReactDOMserver, but that won't technically be the window.document, so perhaps removing comments from prettyDOM might be better? |
I'm fine with changing the behavior here a little bit. Anyone who feels strongly about this can feel free to open a PR with some suggested APIs for this and we can make it happen (hopefully without breaking changes). @herecydev, I'm not sure we can reliably remove those commends without causing more confusion, but maybe we could expose an API that inverts control to you so you can do that yourself. |
Whoops, didn't mean to close this. |
I was looking for the same feature and stumbled upon the following in the doc: Basically by setting the env Not sure if it helps :) Also I agree with @eps1lon a finer grained control can be a lot useful... |
🎉 This issue has been resolved in version 6.13.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Is there any alternative for this to be available for @testing-library/webdriverio ?
|
Hi @g-wozniak, |
Describe the feature you'd like:
Looking for a way to disable the full DOM logging. In RTL it makes sense to see the rendered output when a query fails, as it's usually pretty small. But when using Testcafe testing library, its dumping the entire DOM and pretty much takes over my entire terminal. Would be nice to have a flag you can set in the
configure()
function that allows you to suppress the full DOM logging.Suggested implementation:
configure({showLogOnFail:false})
(default's to current behavior, true)Describe alternatives you've considered:
I noticed an environment variable that lets you control the size, but testcafe runs the tests in-browser so i don't think that will work.
Teachability, Documentation, Adoption, Migration Strategy:
The text was updated successfully, but these errors were encountered: