         expect(atom.workspace.getTextEditors()).toHaveLength(1)
 
       it "continue close until no narrow-editor is exists", ->
-        waitsForPromise -> startNarrow('scan')
-        waitsForPromise -> startNarrow('scan')
-        waitsForPromise -> startNarrow('scan')
+        waitsForStartScan()
+        waitsForStartScan()
+        waitsForStartScan()
 
         runs ->
           expect(Ui.getSize()).toBe(4)

          """
        editor.setCursorBufferPosition([0, 0])

        waitsForPromise ->
          startNarrow('scan').then (_narrow) ->
            {provider, ui, ensure} = narrow = _narrow

      it "add css class to narrowEditorElement", ->
        ensure classListContains: ['narrow', 'narrow-editor', 'scan']

          """
        editor.setCursorBufferPosition([0, 0])

        waitsForStartScan()

      it "toggle focus between provider.editor and ui.editor", ->
        ensureEditorIsActive(ui.editor)
