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

Cannot select Autocomplete options with virtualScrollerOption in react testing library #7512

Closed
Faiz-exe opened this issue Dec 17, 2024 · 1 comment
Labels
question Issue contains a question about the use of PrimeReact components or the products it supports

Comments

@Faiz-exe
Copy link

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.
Screenshot 2024-12-17 143438

Reproducer

https://stackblitz.com/edit/vitejs-vite-4g91x4ai?file=package.json,index.html,src%2F__test__%2FApp.test.tsx

System Information

System Information:
Processor: Intel Core i7
OS: Windows 11 (64-bit)

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
image

Expected behavior

No response

@Faiz-exe Faiz-exe added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 17, 2024
@melloware
Copy link
Member

this question belongs on the Community Forums or Stack Overflow as this is not an Issue with PrimeReact but with Jest and how the component renders.: https://github.com/orgs/primefaces/discussions/categories/primereact

@melloware melloware added question Issue contains a question about the use of PrimeReact components or the products it supports and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 3, 2025
@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issue contains a question about the use of PrimeReact components or the products it supports
Projects
None yet
Development

No branches or pull requests

2 participants