Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger onSelected event from vue test #219

Open
AleksandarKurta opened this issue Dec 3, 2021 · 0 comments
Open

Trigger onSelected event from vue test #219

AleksandarKurta opened this issue Dec 3, 2021 · 0 comments

Comments

@AleksandarKurta
Copy link

AleksandarKurta commented Dec 3, 2021

Hello,

Since autosuggest is rendering input field and for the result "ul" list with "li" this is not going to work

 const options = wrapper.find('#product').findAll('option')
 await options.at(1).setSelected() 

I tried to simulate the click on input filed and after that to click on "li" element

await wrapper.find("#product").trigger("click");
await wrapper.findAll(".autosuggest__results-item").at(1).trigger("selected");

but it doesn't triggers @selected="onSelected"

Can anyone help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant