how to test menu in ADropDown component with @testing-library/vue #5988
Fallsleep
started this conversation in
Show and tell
Replies: 1 comment
-
Any idea how to test dropdown components? The menu items in the popover doesn't exist when testing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
component like
ADropDown
has a default delay for renderingoverlay
slot,after callinguserEvent.hover()
trigger with@testing-library/user-event
,usefindBy
api instead ofgetBy
here's demo,run
npm test
.Beta Was this translation helpful? Give feedback.
All reactions