Cannot select Autocomplete options with virtualScrollerOption in react testing library #7512
Labels
question
Issue contains a question about the use of PrimeReact components or the products it supports
Describe the bug
I am encountering an issue where the Autocomplete options are not appearing in the Test DOM when using React Testing Library. I'm trying to test the behavior of selecting options from an Autocomplete component that uses virtualScrollerOption. Despite using both fireEvent and useEvent to simulate user interaction, the options don't show up in the Test DOM.
Reproducer
https://stackblitz.com/edit/vitejs-vite-4g91x4ai?file=package.json,index.html,src%2F__test__%2FApp.test.tsx
System Information
Steps to reproduce the behavior
1.visit https://stackblitz.com/edit/vitejs-vite-4g91x4ai?file=package.json,index.html,src%2FApp.tsx
2.Obsereve the terminal
Expected behavior
No response
The text was updated successfully, but these errors were encountered: