       .then ({dom, element}) ->
         {overlay} = element.refs
         {popper} = overlay.refs
-        fakePopoverShould('scrollWidth', popper, dom)
+        fakePopoverShould('scrollWidth', dom, popper)
         Testing.actions.click(dom)
         overlayDOM = popper.getOverlayDOMNode()
 

  innerHeight: 600
  innerWidth: 800

checkDoesOverlayHTMLMatch = (overlayElement, html) ->
  popcontentDOM = overlayElement.refs.popcontent.getDOMNode()
  overlayDOM = overlayElement.refs.popper.getOverlayDOMNode()

  expect(popcontentDOM.innerHTML).to.contain(html)
  expect(overlayDOM.innerHTML).to.contain(html)

      .then ({dom, element}) ->
        {overlay} = element.refs
        {popper} = overlay.refs
        fakePopoverShould('scrollBoth', dom, popper)
        Testing.actions.click(dom)
        overlayDOM = popper.getOverlayDOMNode()

