-
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
Focusing radio input and then using .type changes value #15913
Comments
Right, I ran your example and it was reproducible. I clicked the radio button manually and typed the text and saw that it doesn't change the value. |
Additionally, pressing the space bar when the radio input is focused in the browser selects the option (see WAI-ARIA guidelines for RadioGroup). I was trying to test that behavior and that's how I discovered this issue. |
The code for this is done in cypress-io/cypress#16154, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
After focusing an
input[type="radio"]
, thevalue
attribute of that element change be changed using.type
.Desired behavior
Cypress should recognize that radio inputs cannot have their value changed by the user.
Test code to reproduce
Given the following HTML (saved in
test.html
):the following test fails:
Versions
The text was updated successfully, but these errors were encountered: