title: Error: Method “props” is only meant to be run on a single node. 2 found instead
body: <pre><code>it('should call setCampaignDate on click', function () {
      let spySetCampaign = sinon.spy(wrapper.instance(), 'setCampaignDate');
      let datePickers = wrapper.find('.campaign-date-tab').dive().find(Datepicker);
      assert.equal(datePickers.length, 2);
      console.log(datePickers);
      var date = new Date();
  
      for (let index = 0; index &lt; datePickers.length; index++) {
        datePickers.simulate('change'); 
        sinon.assert.calledOnce(spySetCampaign.withArgs(date, 'startDate'));
      }
  
  
    });
  </code></pre>
  
  <p>I am trying to simulate my 'change' function and trying to test whether 'setCampaignDate' is called or not. The problem here is that the length of my shallow component returned by find is 2:</p>
  
  <pre><code>let datePickers = wrapper.find('.campaign-date-tab').dive().find(Datepicker);
  </code></pre>
  
  <p>When trying to call simulate on 'datepickers', it gives an error as below:</p>
  
  <p><code>'Error: Method “props” is only meant to be run on a single node. 2 found instead.'.</code> </p>
  
  <p>Not sure how to simulate on components having nodes greater than 1.</p>