title: userEvent.type not updating value of input in test
body: <p>I am testing this component, which is simply changing its state depending on new input into the input field and setting the value of the input element to that state.</p>
  <pre><code>function Login () {
      //Login Credentials
      const [loginCredentials, setLoginCredentials] = useState({ name: '' })
      const handleChange = ({target}) =&gt; {
          setLoginCredentials(prev =&gt; ({ ...prev, [target.name]: target.value }));
      }
  
      return (
              &lt;div className=&quot;login-container&quot;&gt;
                  &lt;h1&gt;Log In&lt;/h1&gt;
                      &lt;div className=&quot;login-label-input&quot;&gt;
                          &lt;label htmlFor=&quot;name&quot;&gt;Account Name
                              &lt;input
                              type=&quot;name&quot;
                              id=&quot;name&quot;
                              name=&quot;name&quot;
                              placeholder=&quot;Enter Name&quot;
                              onChange={handleChange}
                              value={loginCredentials.name}
                              aria-label=&quot;name&quot;
                              /&gt;
                          &lt;/label&gt;
                    &lt;/div&gt;
               &lt;/div&gt;
      )
  }
  </code></pre>
  <p>and for some reason this test does not show the value of input to be &quot;testUser&quot; in screen.debug() but only &quot;t&quot;....</p>
  <pre><code>
      test(&quot;log in with empty name input returns error message&quot;,  () =&gt; {
      render(&lt;Login /&gt;)
      const nameField = screen.getByLabelText(/account name/i);
      userEvent.type(nameField, 'testUser'); 
      screen.debug()
  });
  
  </code></pre>
  <p>Shouldn't this work? Why doesn't it? excerpt from screen.debug():</p>
  <pre><code>           &lt;label
                for=&quot;name&quot;
              &gt;
                Account Name
                &lt;input
                  aria-label=&quot;name&quot;
                  id=&quot;name&quot;
                  name=&quot;name&quot;
                  placeholder=&quot;Enter Name&quot;
                  type=&quot;name&quot;
                  value=&quot;t&quot;
                /&gt;
              &lt;/label&gt;
  </code></pre>