       rootView.open() # When we trigger 'tool-panel:unfocus' below, we want an editor to become focused
       rootView.attachToDom()
       treeView.focus()
-      expect(treeView.find(".tree-view")).toMatchSelector(':focus')
+      expect(treeView.treeViewList).toMatchSelector(':focus')
       treeView.trigger 'tool-panel:unfocus'
       expect(treeView).toBeVisible()
-      expect(treeView.find(".tree-view")).not.toMatchSelector(':focus')
+      expect(treeView.treeViewList).not.toMatchSelector(':focus')
       expect(rootView.getActiveView().isFocused).toBeTruthy()
 
   describe "when core:close is triggered on the tree view", ->

        treeView.height(100)
        treeView.attachToDom()
        $(element).view().expand() for element in treeView.find('.directory')
        expect(treeView.find(".tree-view").prop('scrollHeight')).toBeGreaterThan treeView.find(".tree-view").outerHeight()

        treeView.moveDown()
        expect(treeView.scrollTop()).toBe 0

        treeView.height(100)
        treeView.attachToDom()
        $(element).view().expand() for element in treeView.find('.directory')
        expect(treeView.treeViewList.prop('scrollHeight')).toBeGreaterThan treeView.treeViewList.outerHeight()

        expect(treeView.scrollTop()).toBe 0

