Debounce not working in headless mode #29735
Unanswered
Fy50167
asked this question in
Questions and Help
Replies: 1 comment
-
After some further testing, the test passes if I change the debounce period from 2000 to 500 ms. The actual cutoff seems to be some value between 500 and 1000 though. |
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
-
I currently have a location search component which draws from Google's Autocomplete API. It's debounced so that the search results don't show up until 2 seconds after the most recent input. Testing in cypress to ensure the functionality of the component works when I run cypress locally, but when I run cypress in headless mode my test fails saying that the search results portion of the component was never found. Does anyone have any ideas what the fix here is? There seems to specifically be some kind of incompatibility with the debounce and headless mode. I've tried adding a cy.wait of 2000 in between the search type command and the command searching for the search results but with no luck. Also for reference my default timeout is currently set to 16 seconds so I don't think the problem is just needing more time for the search results to show up.
Beta Was this translation helpful? Give feedback.
All reactions