Skip to content
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

Verbose Mode #1045

Open
MidnightDesign opened this issue Aug 23, 2022 · 0 comments
Open

Verbose Mode #1045

MidnightDesign opened this issue Aug 23, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@MidnightDesign
Copy link

MidnightDesign commented Aug 23, 2022

(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
@ph-fritsche ph-fritsche added the enhancement New feature or request label Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants