Skip to content

Add debug method #86

Closed
Closed
@Gpx

Description

@Gpx

Describe the feature you'd like:

When I'm writing my tests I often find myself in a state when I need to know what's going on on the page. To accomplish this I usually write something like this: getByText('something that for sure is not on the page'). This way I have an error and the HTML is shown. I think it would be useful to expose a debug method that does more or less the same thing.

Suggested implementation:

I guess we can reuse the same code used to show error messages

Describe alternatives you've considered:

I tried to console.log(container.innerHTML) but it's all on the same line and hard to follow.

Teachability, Documentation, Adoption, Migration Strategy:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions