Skip to content

Unable to set value of Combobox in unit tests #3665

Answered by logoly
logoly asked this question in Help

You must be logged in to vote

Hello,

I just wanted to leave an update for anyone who comes across this topic. The problem was that the Combobox component from Headless UI listens to mousedown instead of click. Adjusting my test to use mousedown instead of click resolved the issue.

Also, the StackBlitz example is now up to date with the working test, so you can check it out here: https://stackblitz.com/edit/vitejs-vite-3frophzj

I hope this helps anyone facing a similar problem! 😄

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@logoly

Answer selected by logoly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant