height="80" width="80" alt="dog" src="https://raw.githubusercontent.com/testing-library/user-event/main/other/dog.png"/>
Fire events the same way the user does
Read The Docs
!Build Statusbuild-badgebuild !Code Coveragecoverage-badgecoverage !versionversion-badgepackage !downloadsdownloads-badgenpmtrends !MIT Licenselicense-badgelicense !All Contributorsall-contributors-badge !PRs Welcomeprs-badgeprs !Code of Conductcoc-badgecoc !Discorddiscord-badgediscord
!Watch on GitHubgithub-watch-badgegithub-watch !Star on GitHubgithub-star-badgegithub-star !Tweettwitter-badgetwitter
The problemFrom testing-library/dom-testing-library#107:
... it is becoming apparent the need to express user actions on a web page using a higher-level abstraction than
user-eventtries to simulate the real events that would happen in the browser as the user interacts with it. For example
userEvent.click(checkbox)would change the state of the checkbox.
The more your tests resemble the way your software is used, the more confidence they can give you.guiding-principle
IssuesLooking to contribute? Look for the Good First Issuegood-first-issue label.
🐛 BugsPlease file an issue for bugs, missing documentation, or unexpected behavior.
💡 Feature RequestsPlease file an issue to suggest new features. Vote on feature requests by adding a 👍. This helps maintainers prioritize what to work on.
See Feature Requestsrequests