title: How to resolve missing characters bug in Cypress type() command?
body: <p>I have a problem regarding typing into the search field of the select2 element. In some tests random character is missing while executing type() command. I tried to wait() before start typing and type with timeout after each character but nothing helped. So the bypass implemented by me is putting the string into the field as a whole instead of typing it char by char:</p>
  <pre><code>this.getSelect2Input().invoke('val', str).trigger('change')
  </code></pre>
  <p>but in this case the test does not understand that the string has been input and continue to wait for input. So the solution was to add a space at the end of the string:</p>
  <pre><code>this.getSelect2Input().invoke('val', str).trigger('change').type(' ');
  </code></pre>
  <p>It works but not for the all tests as in some cases the space is treated as additional character and the string can not be found. For this case I can't found nothing else then typing a space and deleting it (I know that this is not good solution, but what can I do?):</p>
  <pre><code>this.getSelect2Input().invoke('val', str).trigger('change').type(' {backspace}');
  </code></pre>
  <p>But now this is not working as well as in some cases the space is printed but is not deleted. Can anybody advice how to initiate select2 search after setting the value of the field? type({'enter'}) does not work as well.</p>