 
       runs ->
         expect(atom.workspace.panelForItem(projectView).isVisible()).toBe true
-        projectView.filterEditorView.getModel().insertText('this should show up next time we open finder')
+        projectView.selectListView.refs.queryEditor.insertText('this should show up next time we open finder')
 
       waitsForPromise ->
         projectView.toggle()

    fileIcons = new DefaultFileIcons

    it "defaults to text", ->

      waitsForPromise ->
        atom.workspace.open('sample.js')

      runs ->
        waitsForPromise ->
          bufferView.toggle()

        runs ->
        expect(atom.workspace.panelForItem(bufferView).isVisible()).toBe true

        bufferView.filterEditorView.getModel().insertText('js')
        bufferView.populateList()
        firstResult = bufferView.list.children('li').find('.primary-line')
        expect(fileIcons.iconClassForPath(firstResult[0].dataset.path)).toBe 'icon-file-text'

    it "shows image icons", ->

      waitsForPromise ->
        atom.workspace.open('sample.gif')

      runs ->
        waitsForPromise ->
          bufferView.toggle()

        runs ->
        expect(atom.workspace.panelForItem(bufferView).isVisible()).toBe true

        bufferView.filterEditorView.getModel().insertText('gif')
        bufferView.populateList()
        firstResult = bufferView.list.children('li').find('.primary-line')
        expect(fileIcons.iconClassForPath(firstResult[0].dataset.path)).toBe 'icon-file-media'

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

            projectView.toggle()

          runs ->
            waitForPathsToDisplay(projectView)

          runs ->
            expect(Array.from(projectView.element.querySelectorAll('li')).find((a) -> a.textContent.includes("b.txt"))).toBeDefined()
