-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Conversion to onPointerDown #2045
Labels
type: feature
New feature that does not currently exist
Comments
Pointer events documentation: https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events Should be triggered on commands like:
You may be able to use |
28 tasks
The code for this is done in cypress-io/cypress#3030, but has yet to be released. |
Released in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current behavior:
We are converting our app to React 16.4 which introduced Pointer Events API. However, items that we convert from onClick/onMouseDown-> onPointerDown break our Cypress tests. Everything works normally on our dev environment, and we have a PointerEvents polyfill as well (cypress' Chrome version supports the API natively).
Duplicating our
onPointerDown={someAction}
toonPointerDown={someAction} onMouseDown={someAction}
fixes the tests but adds duplication.Desired behavior:
Cypress should be able to handle onPointerDown events without code duplication
Versions
Cypress 3.0.1
The text was updated successfully, but these errors were encountered: