Closed gustaferiksson closed 3 years ago
Confirmed that the given case shows the bug.
The code for this is done in cypress-io/cypress#14498, but has yet to be released. We'll update this issue and reference the changelog when it's released.
Released in 6.7.0
.
This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v6.7.0, please open a new issue.
The
.clear()
command isn't an alias to.type('{selectall}{backspace}')
since it doesn't behave the same. Since cypress 3.5 it's possible to type in any DOM element and if a typeable element gains focus during.type()
then cypress continues in that one. So if you.get()
a parent element of a typeable one, then.clear()
should work because it's supposed to be an alias to.type('{selectall}{backspace}')
as stated in the docs.Current behavior:
.clear()
doesn't have the same behavior as.type('{selectall}{backspace}')
Desired behavior:
.clear()
to behave exactly like.type('{selectall}{backspace}')
Test code to reproduce
Versions
Tested on cypress 5.0 but most likely every version since 3.5