title: How to write test cases for tabs in material-ui using react testing library
body: <p>I am using Material UI tabs in my application and using react testing library. I need to write test cases which should be in a way that I need to move from one tab to another tab. I am providing the code below. Can anybody help me with this? Thanks in advance.</p>
  <p>Code:</p>
  <pre><code>const [value, setValue] = React.useState(0)
      
      function handleChange(event, newValue)
      {
      setValue(newValue)
      }
  
      &lt;AntTabs value={value} onChange={handleChange} aria-label=&quot;Unit information&quot;  &gt;
            &lt;AntTab label=&quot; HELLOW1&quot; {...Unittabprops(0)} /&gt;
            &lt;AntTab label=&quot;HELLOW2&quot; {...Unittabprops(1)} /&gt;
           &lt;AntTab label=&quot;HELLOW3&quot;  {...Unittabprops(2)}/&gt;
          &lt;AntTab label=&quot;HELLOW4&quot; {...Unittabprops(3)} /&gt;
          &lt;AntTab label=&quot;HELLOW5&quot; {...Unittabprops(4)} /&gt;
      &lt;/AntTabs&gt;
  </code></pre>