           runs ->
             dispatchCommand('toggle-buffer-finder')
 
-          waitsFor ->
-            bufferView.find('.status.status-modified').length is 1
+          waitsFor 'the modified item', ->
+            bufferView.find('.status.status-modified').length > 0
 
           runs ->
             expect(bufferView.find('.status.status-modified').closest('li').find('.file').text()).toBe 'a.txt'

      expect(projectView.filterEditorView.getText()).toBe 'this should show up next time we open finder'
      expect(projectView.filterEditorView.getModel().getSelectedText()).toBe 'this should show up next time we open finder'

  fdescribe "Git integration", ->
    [projectPath, gitRepository, gitDirectory] = []

    beforeEach ->

          runs ->
            dispatchCommand('toggle-buffer-finder')

          waitsFor 'the added item', ->
            bufferView.find('.status.status-added').length > 0

          runs ->
