title: Is it possible to check the html tag name on which it is present after getting the element using test id?
body: <p>Suppose I have this code in my component.tsx file. Is there a possibility to check the tag name on which a paricular test id is present ?</p>
  <pre><code>&lt;section&gt;
    &lt;h1 data-testid=&quot;page-header&quot;&gt;
      Welcome!
    &lt;/h1&gt;
    &lt;Link data-testid=&quot;about-page-link&quot; to=&quot;/about&quot;&gt;
      Go to about
    &lt;/Link&gt;
  &lt;/section&gt;
  </code></pre>
  <p>I have the following code to get the element by test id in my test file.</p>
  <pre><code>const headerElement = screen.getByTestId('page-header');
  </code></pre>
  <p>Is it possible to check if the following tag is present on an h1 tag ?</p>
  <p>in short i need to check whether <code>page-header</code> test id is present on <code>h1</code> tag</p>