title: Pressing Enter on a date input in Cypress
body: <p>I have an app with some input fields that I'm trying to automate. The gist of these fields is that I should be able to double click a field, type in a new value, then press Enter to submit that value, which sends a PUT request and also closes the input field. This works for any input type except date.</p>
  
  <p>So far I've tried:</p>
  
  <ul>
  <li><p>Using <code>cy.type('{enter}')</code>. This gives <code>Typing into a date input with cy.type() requires a valid date in the format 'yyyy-MM-dd'. You passed: {enter}</code></p></li>
  <li><p>Using <code>cy.trigger()</code> to send out a keydown event for the enter key. This works, as in it closes the input field successfully but it somehow doesn't send the PUT request.</p></li>
  <li><p>Pressing enter on the parent Element. Same as using <code>cy.trigger()</code></p></li>
  </ul>
  
  <p>Strangely enough, manually opening the input field myself, typing a date and pressing enter will send the request just fine. It seems to me like there's some issue with programmatically pressing enter to submit the field without Cypress interpreting this as my attempt to actually type an invalid character into the date field. The docs do specifically say that no special characters are allowed in a date field.</p>
  
  <p>Can't post any code as this is corporate.</p>