-
Hi team, I am working on implementing something like the Filter Group pattern. The thing is that I have a date picker with a combobox as suggested with several options and the last one is the "Custom" option that opens the date picker popover. The thing is that I would like to test this behaviour but as the Combobox virtualizes it only to the 5 first options it is not available to click on the DOM. Do you recommend some way to test this? Mock the virtualization library? Force an scroll action on the list to see if that shows it in the DOM? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @PabloFNK! Consulting the team about this now, thanks for the question! |
Beta Was this translation helpful? Give feedback.
-
Hey @PabloFNK - we'd recommend mocking your data (if possible), and testing the component functionality independently. If you're writing E2E tests and you're unable to limit the dataset, you will likely need to scroll the list to find the option you want to click on. |
Beta Was this translation helpful? Give feedback.
Hey @PabloFNK - we'd recommend mocking your data (if possible), and testing the component functionality independently. If you're writing E2E tests and you're unable to limit the dataset, you will likely need to scroll the list to find the option you want to click on.