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
When testing a component using the DropdownMenu and userEvent.click the dropdown does not open. It does open on the browser, it just fails on the tests.
This is an issue with how JSDom emulates pointerEvent, it doesn't currently provide the correct event object properties. You'll need to supply these manually or use an alternative testing tool such as Cypress.
Bug report
Current Behavior
When testing a component using the
DropdownMenu
anduserEvent.click
the dropdown does not open. It does open on the browser, it just fails on the tests.Expected behavior
The dropdown opens and the items can be selected.
Reproducible example
Github repo using CRA
Additional context
We were trying to update a project from
0.0.22
to the latest version. After downgrading I discovered it started failing since0.0.23
.Your environment
The text was updated successfully, but these errors were encountered: