 
         runs ->
           workspaceElement.focus()
-          expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
-          expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
+          expect(atom.workspace.getLeftDock().isVisible()).toBe(true)
+          expect(atom.workspace.getLeftDock().isVisible()).toBe(true)
           waitsForPromise -> treeView.toggleFocus()
           runs ->
-            expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
+            expect(atom.workspace.getLeftDock().isVisible()).toBe(true)
             expect(treeView.element).toHaveFocus()
 
       describe "when the tree view is focused", ->

        atom.workspace.getLeftDock().hide()
        waitsForPromise -> treeView.toggleFocus()
        runs ->
          expect(atom.workspace.getLeftDock().isOpen()).toBe(true)
          expect(treeView.element).toHaveFocus()

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


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

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