<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate. But I think it is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="231794266" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/6971" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/6971/hovercard" href="https://github.com/mui/material-ui/issues/6971">#6971</a></li>
</ul>
<p dir="auto">I currently use snapshot testing for a project, but it seems like as soon as i'm using a component which relies on material-ui/Button the tests fail with.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Invariant Violation: getNodeFromInstance: Invalid argument.
      
      at invariant (node_modules/fbjs/lib/invariant.js:42:15)
      at Object.getNodeFromInstance (node_modules/react-dom/lib/ReactDOMComponentTree.js:160:77)
      at findDOMNode (node_modules/react-dom/lib/findDOMNode.js:47:41)
      at ButtonBase.componentDidMount (node_modules/material-ui/ButtonBase/ButtonBase.js:222:47)
      at node_modules/react-test-renderer/lib/ReactCompositeComponent.js:262:25
      at measureLifeCyclePerf (node_modules/react-test-renderer/lib/ReactCompositeComponent.js:73:12)
      at node_modules/react-test-renderer/lib/ReactCompositeComponent.js:261:11
      at CallbackQueue.notifyAll (node_modules/react-test-renderer/lib/CallbackQueue.js:74:22)
      at ReactTestReconcileTransaction.close (node_modules/react-test-renderer/lib/ReactTestReconcileTransaction.js:34:26)
      at ReactTestReconcileTransaction.closeAll (node_modules/react-test-renderer/lib/Transaction.js:207:25)
      at ReactTestReconcileTransaction.perform (node_modules/react-test-renderer/lib/Transaction.js:154:16)
      at batchedMountComponentIntoNode (node_modules/react-test-renderer/lib/ReactTestMount.js:67:27)
      at ReactDefaultBatchingStrategyTransaction.perform (node_modules/react-test-renderer/lib/Transaction.js:141:20)
      at Object.batchedUpdates (node_modules/react-test-renderer/lib/ReactDefaultBatchingStrategy.js:60:26)
      at Object.batchedUpdates (node_modules/react-test-renderer/lib/ReactUpdates.js:95:27)
      at Object.render [as create] (node_modules/react-test-renderer/lib/ReactTestMount.js:126:18)
      at Object.test (node_modules/@storybook/addon-storyshots/dist/test-bodies.js:26:44)
      at Object.&lt;anonymous&gt; (node_modules/@storybook/addon-storyshots/dist/index.js:145:21)
          at Promise (&lt;anonymous&gt;)
          at &lt;anonymous&gt;
"><pre class="notranslate"><code class="notranslate">Invariant Violation: getNodeFromInstance: Invalid argument.
      
      at invariant (node_modules/fbjs/lib/invariant.js:42:15)
      at Object.getNodeFromInstance (node_modules/react-dom/lib/ReactDOMComponentTree.js:160:77)
      at findDOMNode (node_modules/react-dom/lib/findDOMNode.js:47:41)
      at ButtonBase.componentDidMount (node_modules/material-ui/ButtonBase/ButtonBase.js:222:47)
      at node_modules/react-test-renderer/lib/ReactCompositeComponent.js:262:25
      at measureLifeCyclePerf (node_modules/react-test-renderer/lib/ReactCompositeComponent.js:73:12)
      at node_modules/react-test-renderer/lib/ReactCompositeComponent.js:261:11
      at CallbackQueue.notifyAll (node_modules/react-test-renderer/lib/CallbackQueue.js:74:22)
      at ReactTestReconcileTransaction.close (node_modules/react-test-renderer/lib/ReactTestReconcileTransaction.js:34:26)
      at ReactTestReconcileTransaction.closeAll (node_modules/react-test-renderer/lib/Transaction.js:207:25)
      at ReactTestReconcileTransaction.perform (node_modules/react-test-renderer/lib/Transaction.js:154:16)
      at batchedMountComponentIntoNode (node_modules/react-test-renderer/lib/ReactTestMount.js:67:27)
      at ReactDefaultBatchingStrategyTransaction.perform (node_modules/react-test-renderer/lib/Transaction.js:141:20)
      at Object.batchedUpdates (node_modules/react-test-renderer/lib/ReactDefaultBatchingStrategy.js:60:26)
      at Object.batchedUpdates (node_modules/react-test-renderer/lib/ReactUpdates.js:95:27)
      at Object.render [as create] (node_modules/react-test-renderer/lib/ReactTestMount.js:126:18)
      at Object.test (node_modules/@storybook/addon-storyshots/dist/test-bodies.js:26:44)
      at Object.&lt;anonymous&gt; (node_modules/@storybook/addon-storyshots/dist/index.js:145:21)
          at Promise (&lt;anonymous&gt;)
          at &lt;anonymous&gt;

</code></pre></div>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Snapshot testing is possible with all components.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Snapshot testing isn't possible for some components.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Write a snapshot test for e.g. <code class="notranslate">import Hidden from 'material-ui/Hidden';</code> and one for <code class="notranslate">import Button from 'material-ui/Button';</code> (is there a pastebin which is capable of this?)</p>
<h2 dir="auto">Context</h2>
<p dir="auto">I tried using storyshots for snapshot testing of components using material-ui components.</p>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>beta.17</td>
</tr>
<tr>
<td>React</td>
<td>15.6</td>
</tr>
</tbody>
</table>
<p dir="auto">I try to destroy my React application using "unmountComponentAtNode" I get an error when my app includes a Dialog  component.</p>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Application unmounted without errors.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">These errors:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

index.js:2177 The above error occurred in the &lt;DialogInline&gt; component:
    in DialogInline"><pre class="notranslate"><code class="notranslate">Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

index.js:2177 The above error occurred in the &lt;DialogInline&gt; component:
    in DialogInline
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://codesandbox.io/s/7mojo3pzzq" rel="nofollow">https://codesandbox.io/s/7mojo3pzzq</a> (project not working for some reason)</p>
<ol dir="auto">
<li>Call unmountComponentAtNode</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I'm trying to unmount a React application that has a Dialog.</p>
<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>0.20.0</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>Any</td>
</tr>
</tbody>
</table>