Skip to content

Verbose Mode #1045

Open
Open
@MidnightDesign

Description

@MidnightDesign

(Continued from #616 (comment))

Sometimes it's really difficult to know why an event isn't working as expected, for example when clicking on the submit button of an invalid form, the form isn't submitted. Currently, you have to know all the things to check for a particular userEvent.*().

Obviously, you don't want an exception in that case either because you might be trying to test the form validation itself.

When debugging these kinds of issues, it would be kind of helpful to have some kind of "Verbose Mode":

Hovering over the element
Clicking the element
Firing "onClick"
Firing "onSubmit" on the element's form
Warning: Could not submit form because it is invalid

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions