title: Method “text” is meant to be run on 1 node. 0 found instead
body: <p><a href="https://i.stack.imgur.com/PpHkT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PpHkT.png" alt="enter image description here"></a></p>
  
  <p>[Create-React-App] <em>Jest</em> and <em>Enzyme</em>(3.9.0) cant seem to find my <code>&lt;Button/&gt;</code> Element from <code>Auth.jx</code> container..
  The application should render the Auth container <code>if(!isAuthernticated)</code> and the button should be disabled if no input is supplied.</p>
  
  <p>I tried <strong>ShallowWrapper::dive()</strong> but i get a TypeError</p>
  
  <p><code>TypeError: SHallowWrapper::dive() can only be called on components</code></p>
  
  <p><strong>Auth.jsx</strong></p>
  
  <pre><code>    //...
      let errorMessage = null;
      let button=&lt;Button id='Disabled' btnType="Success" disabled={false}&gt;Disabled&lt;/Button&gt;;
      let authRedirect = null;
  
      if (this.props.isAuthenticated) {
          authRedirect = &lt;Redirect to={this.props.authRedirectPath}/&gt;
      }
          if (this.state.controls.username.value &amp;&amp; this.state.controls.password.value){
  
             button=&lt;Button id='Login' btnType="Success"&gt;Login&lt;/Button&gt;
            }
      return (
           &lt;div&gt;
          {authRedirect}
                      &lt;form onSubmit={this.handleSubmit}&gt;
                         {form}
                      {button}
                      &lt;/form&gt;
          &lt;/div&gt;
      )
  }
   //...
  </code></pre>
  
  <p><strong>Auth.test.js</strong></p>
  
  <pre><code>import React from 'react';
  import {shallow} from 'enzyme';
  import Auth from '../containers/Auth/Auth';
  import Button from '../components/Button/button';
  import Input from '../components/Input/input';
  
  describe('&lt;Auth/&gt;',() =&gt;{
      let wrapper;
      beforeEach(()=&gt;{
          wrapper=shallow(&lt;Auth authRedirectPath='/' isAuthenticated={false}/&gt;).dive()
      })
  
      //Test 1
      it('should render disabled button if no input has been specified ',()=&gt;{
          expect(wrapper.find(Button).text()).toEqual('Disabled')
      });
  })
  </code></pre>