You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Won't type into input filed with invalid type (like type="invalid"), throws an error.
Desired behavior:
Cypress should type to input field anyway. Cypress shouldn't be so strict regarding the input field type. It should handle types that it cannot recognise (as default text).
How to reproduce:
Create HTML input element with an invalid type.
<inputtype="invalid" />
Then use cypress to type into that input field.
Test code:
cy.get('input').type('banana')
Additional Info (images, stack traces, etc)
The text was updated successfully, but these errors were encountered:
We have chosen to be strict about only allowing valid input types to be typed into. We feel that this helps ensure that your application's HTML is valid and is another layer of testing that is more helpful than harmful. If your application uses invalid HTML, there is no assurance that browsers will respect the behavior you expect.
That being said, I'd like to hear the use case for why you feel using an invalid input type is necessary for your application - we are always open to hear situations we have not considered.
Is this a Feature or Bug?
Bug
Current behavior:
Won't type into input filed with invalid type (like type="invalid"), throws an error.
Desired behavior:
Cypress should type to input field anyway. Cypress shouldn't be so strict regarding the input field type. It should handle types that it cannot recognise (as default text).
How to reproduce:
Create HTML input element with an invalid type.
Then use cypress to type into that input field.
Test code:
Additional Info (images, stack traces, etc)
The text was updated successfully, but these errors were encountered: