canonical / react-components

A set of components based on Vanilla Framework
https://canonical.github.io/react-components
100 stars 55 forks source link

Suggest using userEvent library instead of fireEvent for simulating user interaction #778

Open petermakowski opened 2 years ago

petermakowski commented 2 years ago

userEvent adds related event calls from browsers to make tests more realistic than its counterpart fireEvent, which is a low-level api.

This makes for a more user-centric, and closer-to-truth testing of user interactions.

bartaz commented 1 week ago

Triaging as consideration for new architecture.