title: How to test for tooltip title in jest and testing/library
body: <p>I want to test that the tooltip title is equal to a specific text or not.
  This is my antd tooltip I want to write a test for that:</p>
  <pre><code>&lt;Tooltip
    title={
       this.props.connection ? &quot;Connected&quot; : &quot;Disconnected (Try again)&quot;
           }&gt;
    &lt;Badge status=&quot;default&quot; data-testid=&quot;connection-sign&quot; /&gt;
  &lt;/Tooltip&gt;
  </code></pre>
  <p>and this is my test in jest:</p>
  <pre><code> test(&quot;Show error title in tooltip&quot;, async () =&gt; {
      baseDom = render(cardComponent);
      fireEvent.mouseMove(await baseDom.findByTestId(&quot;connection-sign&quot;)); //To hover element and show tooltip
      expect(
        baseDom.getByTitle(
          &quot;Disconnected (Try again)&quot;
        )
      ).toBeInTheDocument();
    });
  </code></pre>
  <p>but this test failed and unable to find an element with this title. How can I test that my tooltip contain &quot;Disconnected (Try again)&quot;?</p>