 
       atom.commands.dispatch(tableElement, 'table-edit:select-to-beginning-of-table')
 
-      expect(tableElement.body.scrollTop()).toEqual(0)
+      expect(tableElement.body.scrollTop).toEqual(0)
 
     describe 'table-edit:select-to-end-of-table', ->
       it 'expands the selection to the end of the table', ->

      expect(tableElement.getSelection()).toEqual([[0,0],[2,0]])

    it 'scrolls the view to make the added row visible', ->
      tableElement.scrollTop(200)
      tableElement.activateCellAtPosition([10,0])

      atom.commands.dispatch(tableElement, 'core:select-up')

      expect(tableElement.body.scrollTop()).toEqual(180)

    describe 'then triggering core:select-down', ->
      it 'collapse the selection back to the bottom', ->

      nextAnimationFrame()

    it 'creates a selection with the cells from the mouse movements', ->
      startCell = tableShadowRoot.querySelector('.table-edit-row:nth-child(4) .table-edit-cell:nth-child(1)')
      endCell = tableShadowRoot.querySelector('.table-edit-row:nth-child(7) .table-edit-cell:nth-child(2)')

      mousedown(startCell)
      mousemove(endCell)
