title: React: unable to check the type of input field
body: <p>How can I test for the type of the input field in the JSX of my react component?</p>
  
  <p>For example, lets say the following is a part of JSX:</p>
  
  <pre><code>&lt;form&gt;
      &lt;input type="number" name="testfield" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Now I want to write a test case that which should check if the type of the input field is a number or not?</p>