           tableElement.startCellEdit()
 
         it 'opens the editor at the cell position', ->
-          editorOffset = tableShadowRoot.querySelectorAll('atom-text-editor').offset()
-          cellOffset = tableShadowRoot.querySelectorAll('.table-edit-row:first-child .table-edit-cell:first-child').offset()
+          editorOffset = tableElement.querySelector('atom-text-editor').getBoundingClientRect()
+          cellOffset = tableShadowRoot.querySelector('.table-edit-row:first-child .table-edit-cell:first-child').getBoundingClientRect()
 
           expect(editorOffset.top).toBeCloseTo(cellOffset.top, -1)
           expect(editorOffset.left).toBeCloseTo(cellOffset.left, -1)

      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()

          expect(tableElement.direction).toEqual(1)
          expect(tableShadowRoot.querySelector('.table-edit-row:first-child .table-edit-cell:first-child').textContent).toEqual('row0')

      describe '::resetSort', ->
        beforeEach ->
