Skip to content

testing-library/user-event

Folders and files

NameName
Last commit message
Last commit date
Dec 29, 2023
Feb 4, 2025
Jan 28, 2025
Mar 13, 2022
Jan 29, 2025
Feb 5, 2025
Feb 4, 2025
Feb 4, 2025
Jan 29, 2025
May 20, 2020
Dec 27, 2023
May 20, 2020
Oct 7, 2021
May 20, 2020
May 20, 2020
May 20, 2020
Jan 21, 2025
Jan 29, 2025
May 20, 2020
Mar 25, 2022
Jan 28, 2025
Sep 14, 2023
Feb 4, 2025
Jan 28, 2025
Aug 1, 2022
Dec 31, 2021
Dec 27, 2023

Repository files navigation

user-event

dog

Fire events the same way the user does


Read The Docs



Build Status Code Coverage version downloads MIT License All Contributors PRs Welcome Code of Conduct Discord

Watch on GitHub Star on GitHub Tweet

The problem

From 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 fireEvent

The solution

user-event tries 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.

Issues

Looking to contribute? Look for the Good First Issue label.

πŸ› Bugs

Please file an issue for bugs, missing documentation, or unexpected behavior.

See Bugs

πŸ’‘ Feature Requests

Please file an issue to suggest new features. Vote on feature requests by adding a πŸ‘. This helps maintainers prioritize what to work on.

See Feature Requests

❓ Questions

For questions related to using the library, please visit a support community instead of filing an issue on GitHub.

Contributors

We most sincerely thank the people who make this project possible. Contributions of any kind are welcome! πŸ’š

License

MIT