             it 'displays the full contextual menu', ->
               fileView1.dispatchEvent(new MouseEvent('click', {bubbles: true, detail: 1}))
               fileView3.dispatchEvent(new MouseEvent('mousedown', {bubbles: true, ctrlKey: true}))
-              expect(treeView.element.querySelector('.tree-view')).toHaveClass('full-menu')
-              expect(treeView.element.querySelector('.tree-view')).not.toHaveClass('multi-select')
+              expect(treeView.list).toHaveClass('full-menu')
+              expect(treeView.list).not.toHaveClass('multi-select')
 
           describe 'previous item is selected including the ctrl clicked', ->
             it 'displays the multi-select menu', ->
               fileView1.dispatchEvent(new MouseEvent('click', {bubbles: true, detail: 1}))
               fileView3.dispatchEvent(new MouseEvent('mousedown', {bubbles: true, metaKey: true}))
               fileView3.dispatchEvent(new MouseEvent('mousedown', {bubbles: true, ctrlKey: true}))
-              expect(treeView.element.querySelector('.tree-view')).not.toHaveClass('full-menu')
-              expect(treeView.element.querySelector('.tree-view')).toHaveClass('multi-select')
+              expect(treeView.list).not.toHaveClass('full-menu')
+              expect(treeView.list).toHaveClass('multi-select')
 
             it 'does not deselect any of the items', ->
               fileView1.dispatchEvent(new MouseEvent('click', {bubbles: true, detail: 1}))

          expect(treeView).toBeVisible()
          atom.commands.dispatch(workspaceElement, 'tree-view:toggle-focus')
          expect(treeView).toBeVisible()
          expect(treeView.element.querySelector('.tree-view')).toHaveFocus()

      describe "when the tree view is focused", ->
        it "unfocuses the tree view", ->

          expect(sampleTxt).toHaveClass 'selected'
          expect(treeView.element.querySelectorAll('.selected').length).toBe 1
          expect(atom.workspace.getActivePaneItem().getPath()).toBe atom.project.getDirectories()[0].resolve('tree-view.txt')
          expect(treeView.list).toMatchSelector(":focus")

    describe "opening existing opened files in existing split panes", ->
      beforeEach ->
