       runAtom [path.join(tempDirPath, "new-file")], {ATOM_HOME: atomHome}, (client) ->
         client
           .waitForWindowCount(1, 1000)
-          .waitForExist("atom-workspace", 5000)
+          .waitForExist("atom-workspace", 10000)
           .waitForPaneItemCount(1, 5000)
 
           # Opening another file reuses the same window and does not change the

          .waitForNewWindow(->
            @startAnotherAtom([otherTempDirPath], ATOM_HOME: atomHome)
          , 5000)
          .waitForExist("atom-workspace", 5000)
          .waitForPaneItemCount(0, 1000)
          .treeViewRootDirectories()
          .then ({value}) -> expect(value).toEqual([otherTempDirPath])

      runAtom ["#{filePath}:  "], {ATOM_HOME: atomHome}, (client) ->
        client
          .waitForWindowCount(1, 1000)
          .waitForExist("atom-workspace", 10000)
          .waitForPaneItemCount(1, 1000)
          .waitForExist("atom-text-editor", 5000)
          .then (exists) -> expect(exists).toBe true
