You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
(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":
The text was updated successfully, but these errors were encountered: