title: Cypress, how to check for text typed into a field?
body: <p>I can verify text appears &quot;somewhere&quot; on the results page with</p>
  <pre class="lang-javascript prettyprint-override"><code>it.only('can verify an input element has certain text typed into it', function() {
    cy.visit('http://google.com')
    cy.get(&quot;input[name=q]&quot;).type('abc123{enter}')  // with or without the {enter}
    cy.contains('abc123') // Anywhere on the page :(
  })
  </code></pre>
  <p>but how can I verify the text I type <strong>in the input text box</strong>?</p>
  <p>I tried chaining to the element with</p>
  <pre class="lang-javascript prettyprint-override"><code>it.only('can verify an input element has certain text typed into it', function() {
    cy.visit('http://google.com')
    cy.get(&quot;input[name=q]&quot;).type('abc123{enter}')
    cy.get(&quot;input[name=q]&quot;).contains('abc123')
  })
  </code></pre>
  <p>but I get</p>
  <pre class="lang-none prettyprint-override"><code>CypressError: Timed out retrying: Expected to find content: 'abc123' within the element: &lt;input.gLFyf.gsfi&gt; but never did.
  </code></pre>
  <p>I tried <code>cy.get(&quot;input[name=q]&quot;).contains('abc123')</code> and<br />
  <code>cy.contains('input[name=q]', 'abc123')</code><br />
  but both time out and fail.</p>