             expect(openFilePaths).toEqual([undefined])
 
         it "focuses the directory's parent folder", ->
-          jasmine.attachToDOM(workspaceElement)
-
           dirView2.dispatchEvent(new MouseEvent('click', {bubbles: true, detail: 1}))
           treeView.focus()
 

            expect(openFilePaths).toEqual([filePath2Copy])

        it "focuses the file's parent folder", ->
          jasmine.attachToDOM(workspaceElement)

          fileView2.dispatchEvent(new MouseEvent('click', {bubbles: true, detail: 1}))
          treeView.focus()


          fs.makeTreeSync(dirPath20)
          fs.writeFileSync(filePath20, "doesn't matter 20")

          waitForWorkspaceOpenEvent ->
            atom.workspace.open(filePath2)

