 
         runs ->
           expect(atom.workspace.getActivePaneItem().getPath()).toBeUndefined()
-          expect(atom.workspace.getLeftDock().isOpen()).toBe(false)
+          expect(atom.workspace.getLeftDock().isVisible()).toBe(false)
 
         waitsForPromise ->
           treeView.revealActiveFile()
 
         runs ->
-          expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
+          expect(atom.workspace.getLeftDock().isVisible()).toBe(true)
           expect(treeView.focus).toHaveBeenCalled()
 
     describe "if there is no editor open", ->
       it "shows and focuses the tree view, but does not attempt to select a specific file", ->
         expect(atom.workspace.getActivePaneItem()).toBeUndefined()
-        expect(atom.workspace.getLeftDock().isOpen()).toBe(false)
+        expect(atom.workspace.getLeftDock().isVisible()).toBe(false)
 
         waitsForPromise ->
           treeView.revealActiveFile()
 
         runs ->
-          expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
+          expect(atom.workspace.getLeftDock().isVisible()).toBe(true)
           expect(treeView.focus).toHaveBeenCalled()
 
     describe 'if there are more items than can be visible in the viewport', ->

        treeView.focus()
        expect(treeView.element).toHaveFocus()
        atom.commands.dispatch(treeView.element, 'tool-panel:unfocus')
        expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
        expect(treeView.element).not.toHaveFocus()
        expect(atom.workspace.getActivePane().isActive()).toBe(true)



        runs ->
          workspaceElement.focus()
          expect(atom.workspace.getLeftDock().isVisible()).toBe(true)
          expect(atom.workspace.getLeftDock().isVisible()).toBe(true)
          waitsForPromise -> treeView.toggleFocus()
          runs ->
            expect(atom.workspace.getLeftDock().isVisible()).toBe(true)
            expect(treeView.element).toHaveFocus()

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