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

Implement correct behavior for all input types supporting arrow up (stepUp) and arrow down (stepDown) #29665

Closed
thevladisss opened this issue Jun 13, 2024 · 2 comments · Fixed by #29678
Labels
topic: cy.type ⌨️ type: feature New feature that does not currently exist

Comments

@thevladisss
Copy link
Contributor

What would you like?

Implement correct behavior for all inputs that support "key up" and "key down" on the keyboard and input types that support "stepUp" and "stepDown" functions and are listen in docs. .
Currently attempting to use cy.type("{upArrow}") or cy.type("{downArrow}) is only supported by input[type=number], while for others it throws

Why is this needed?

Cypress should match native experience using inputs that support this behavior and support "key down" and "key up" on them.

Other

No response

@thevladisss
Copy link
Contributor Author

@jennifer-shehane All the date inputs have a caret specific behavior, e.g. when user focuses on input[type=time] for instance, focus position can be moved using right and left arrows, this however is not achievable to simulate with "stepUp" or "stepDown" as they only increase/decrease the value based on the step.

Any thoughts on this?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Aug 27, 2024

Released in 13.14.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.14.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Aug 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: cy.type ⌨️ type: feature New feature that does not currently exist
Projects
None yet
2 participants