Skip to content

Ability to suppress logging full DOM #360

Closed
@benmonro

Description

@benmonro

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions