Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(PPDSC-2242): switch to user-event for floating-ui tests
- https://floating-ui.com/docs/react-dom#testing - https://testing-library.com/docs/user-event/intro/#difference-to-fireevent - testing-library/react-testing-library#1051 - Switch from fireEvent to userEvent for floating-ui tests. - Because floating-ui styling is applied async, a state update occurs in a Promise microtask leading to errors and warnings after upgrading React. - Migrating to userEvent solves this issue. - Some snapshot updates required as async styling unrelated to test that was not previously applied now is.
- Loading branch information