title: TypeError: Expected container to be an Element, a Document or a DocumentFragment but got string
body: <p>I'm trying to run the below testcase using RTL , and the test is failing with the error &quot;TypeError: Expected container to be an Element, a Document or a DocumentFragment but got string.&quot;. I tried searching for solution but couldn't find one .</p>
  <pre><code>describe(&quot;Feedback Commponent&quot;,()=&gt;{
    it('should throw error when feedback textbox is empty', () =&gt; {
      const { getByLabelText} = render(&lt;Contact /&gt;);
  
      fireEvent.change(getByLabelText('Feedback'), {
        target: { value: '' },
      });
  
      fireEvent.blur(getByLabelText('Feedback'));
      debug();
  
      expect(getByTestId('feedback-error')).toBe(
        'Please Enter Your Feedback'
      );
    });
  });
  </code></pre>
  <p>The above snippet is suppose to test the feedback form , to be specific only the feedback text box , when it is empty and when user goes out of focus from the textbox ,there should be an error stating &quot;Please Enter Your Feedback&quot;.</p>