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
The .clear() command is an alias for .type({selectall}{backspace}). However, typing in date fields is limited to strings matching the date format. This causes Cypress to throw an error.
CypressError: Typing into a date input with cy.type() requires a valid date with the format 'yyyy-MM-dd'. You passed: {selectall}{del}
Desired behavior:
The type command should allow {selectall}{del} for date inputs and clear the input value.
Versions
Tested on Cypress 3.1.0
The text was updated successfully, but these errors were encountered:
Using
.clear()
on a date field should clear the value rather than causing an error. This may affect other field types.Related StackOverflow question
Current behavior:
The
.clear()
command is an alias for.type({selectall}{backspace})
. However, typing in date fields is limited to strings matching the date format. This causes Cypress to throw an error.Desired behavior:
The type command should allow
{selectall}{del}
for date inputs and clear the input value.Versions
Tested on Cypress 3.1.0
The text was updated successfully, but these errors were encountered: