       expect(tableElement.getSelection()).toEqual([[3,0],[6,2]])
 
     it 'scrolls the view when the selection reach the last row', ->
-      startCell = tableShadowRoot.querySelectorAll('.table-edit-row:nth-child(7) .table-edit-cell:nth-child(1)')
-      endCell = tableShadowRoot.querySelectorAll('.table-edit-row:nth-child(10) .table-edit-cell:nth-child(3)')
+      startCell = tableShadowRoot.querySelector('.table-edit-row:nth-child(7) .table-edit-cell:nth-child(1)')
+      endCell = tableShadowRoot.querySelector('.table-edit-row:nth-child(10) .table-edit-cell:nth-child(3)')
 
       mousedown(startCell)
       mousemove(endCell)
 
-      expect(tableElement.body.scrollTop()).toBeGreaterThan(0)
+      expect(tableElement.body.scrollTop).toBeGreaterThan(0)
 
     it 'scrolls the view when the selection reach the first row', ->
-      tableElement.scrollTop(300)
+      tableElement.setScrollTop(300)
       nextAnimationFrame()
 
-      startCell = tableShadowRoot.querySelectorAll('.table-edit-row:nth-child(12) .table-edit-cell:nth-child(1)')
-      endCell = tableShadowRoot.querySelectorAll('.table-edit-row:nth-child(9) .table-edit-cell:nth-child(3)')
+      startCell = tableShadowRoot.querySelector('.table-edit-row:nth-child(12) .table-edit-cell:nth-child(1)')
+      endCell = tableShadowRoot.querySelector('.table-edit-row:nth-child(9) .table-edit-cell:nth-child(3)')
 
       mousedown(startCell)
       mousemove(endCell)
 
-      expect(tableElement.body.scrollTop()).toBeLessThan(300)
+      expect(tableElement.body.scrollTop).toBeLessThan(300)
 
   describe 'when the columns widths have been changed', ->
     beforeEach ->

        nextAnimationFrame()

      it 'sorts the rows accordingly', ->
        expect(tableShadowRoot.querySelectorAll('.table-edit-row:first-child .table-edit-cell:first-child').text()).toEqual('row99')

      it 'leaves the active cell position as it was before', ->
        expect(tableElement.activeCellPosition).toEqual([0,0])
        expect(tableElement.getActiveCell()).toEqual(table.cellAtPosition([99,0]))

      it 'sets the proper height on the table rows container', ->
        expect(tableShadowRoot.querySelectorAll('.table-edit-rows').height()).toEqual(2000)

      it 'decorates the table cells with a class', ->
        expect(tableShadowRoot.querySelectorAll('.table-edit-cell.order').length).toBeGreaterThan(1)

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

    it 'scrolls the view to make the added row visible', ->
      tableElement.setScrollTop(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', ->
