     it 'scrolls the view to make the added row visible', ->
       atom.commands.dispatch(tableElement, 'table-edit:select-to-end-of-table')
 
-      expect(tableElement.body.scrollTop).not.toEqual(0)
+      expect(tableElement.getRowsContainer().scrollTop).not.toEqual(0)
 
     describe 'then triggering table-edit:select-to-beginning-of-table', ->
       it 'expands the selection to the beginning of the table', ->


      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', ->

      mousedown(startCell)
      mousemove(endCell)

      expect(tableElement.getRowsContainer().scrollTop).toBeGreaterThan(0)

    it 'scrolls the view when the selection reach the first row', ->
      tableElement.setScrollTop(300)
