cy.clear({ force: true }) only deletes first character of hidden input in 3.5.0 #5835
Labels
topic: cy.type ⌨️
type: regression
A bug that didn't appear until a specific Cy version release
v3.5.0 🐛
Issue present since 3.5.0
Current behavior:
.clear({ force: true })
only deletes the first character of a hidden input's initialvalue
.Desired behavior:
.clear({ force: true })
should delete all characters of a hidden input's initialvalue
.Steps to reproduce: (app code and test code)
https://github.com/mpetrovich/cypress-test-tiny (compare)
Given:
This assertion fails:
With error:
Note: Issue persists when input is hidden with
style="display: none"
as well.Versions
These versions have been confirmed to be affected:
v3.7.0
v3.6.1
v3.6.0
v3.5.0
These versions have been confirmed to NOT be affected:
v3.4.1
v3.4.0
v3.3.2
The text was updated successfully, but these errors were encountered: