         dispatchCommand('toggle-git-status-finder')
         expect(atom.workspace.panelForItem(gitStatusView).isVisible()).toBe true
 
-        waitsFor ->
-          gitStatusView.find('.file').length is 4
-
-        runs ->
+        waitForPathsToDisplay gitStatusView
+
+        runs ->
+          console.log(projectPath)
+          console.log(atom.project.getRepositories()[1].async.getCachedPathStatuses())
           expect(gitStatusView.find('.status.status-modified').length).toBe 1
           expect(gitStatusView.find('.status.status-added').length).toBe 3
 

      gitRepository = atom.project.getRepositories()[1].async
      waitsForPromise -> gitRepository.refreshStatus()

    describe "git-status-finder behavior", ->
      [originalText, originalPath, newPath] = []

      beforeEach ->

          originalPath = editor.getPath()
          fs.writeFileSync(originalPath, 'making a change for the better')

          newPath = atom.project.getDirectories()[1].resolve('newsample.js')
          fs.writeFileSync(newPath, '')

        waitsForPromise ->
          gitRepository.refreshStatusForPath(originalPath)

