           it "removes the dialog and focuses the tree view", ->
             atom.commands.dispatch moveDialog.element, 'core:cancel'
             expect(atom.workspace.getModalPanels().length).toBe 0
-            expect(treeView.find(".tree-view")).toMatchSelector(':focus')
+            expect(treeView.find(".tree-view")).toHaveFocus()
 
         describe "when the move dialog's editor loses focus", ->
           it "removes the dialog and focuses root view", ->

          treeView.focus()

          waitsForFileToOpen ->
            sampleTxt.trigger clickEvent(originalEvent: {detail: 1})
            sampleTxt.trigger clickEvent(originalEvent: {detail: 2})

          waits 100



    describe "when a root folder is dragged out of application", ->
      it "should carry the folder's information", ->
        gammaDir = treeView.roots[1]
        [dragStartEvent] = eventHelpers.buildPositionalDragEvents(gammaDir.querySelector('.project-root-header'))
        treeView.rootDragAndDrop.onDragStart(dragStartEvent)

        expect(dragStartEvent.originalEvent.dataTransfer.getData("text/plain")).toEqual gammaDirPath
