 
           treeView.focus()
 
-          waitsForWindowOpen ->
+          waitsForFileToOpen ->
             sampleTxt.trigger clickEvent(originalEvent: {detail: 1})
             sampleTxt.trigger clickEvent(originalEvent: {detail: 2})
 
+          waits 100
+
           runs ->
             activePaneItem = atom.workspace.getActivePaneItem()
 


    describe "opening existing opened files in existing split panes", ->
      beforeEach ->
        atom.project.setPaths([path1])

        jasmine.attachToDOM(workspaceElement)
        waitsForFileToOpen ->


            treeView.focus()

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

            runs ->
