title: How do I test a a Field component from React Redux with React Testing Library?
body: <p>This is my Field:</p>
  <pre><code>&lt;Field
   name=&quot;postcode&quot;
   label=&quot;Postcode&quot;
   nonReduxFormInputProps={{ id: 'postcode' }}
   component={TextInput}
   /&gt;
  </code></pre>
  <p>In my test, I've done this so far and it passes but I think it's wrong because for the name, 'postcode' in the code starts with a lowercase, but in my test it only passes if the name is with a capital 'P'. I also don't know how I would test the label, nonReduxFormInputProps and component.</p>
  <pre><code>describe('postcode field', () =&gt; {
    it('should render a Field component with correct props', () =&gt; {
      render(&lt;TestForm /&gt;);
      expect(screen.getByRole('textbox', { name: 'Postcode' })).toBeInTheDocument();
  </code></pre>