     describe "when the jumpy:toggle event is triggered
         and hotkeys are entered", ->
         it "the beacon animation class is added", ->
-            editorView.trigger 'jumpy:a'
-            editorView.trigger 'jumpy:c'
-            expect(editorView.querySelectorAll('.beacon')).toExist()
+            textEditorElement.trigger 'jumpy:a'
+            textEditorElement.trigger 'jumpy:c'
+            expect(textEditorElement.querySelectorAll('.beacon')).toExist()
         it "the beacon animation class is removed", ->
-            editorView.trigger 'jumpy:a'
+            textEditorElement.trigger 'jumpy:a'
             waitsFor ->
                 setTimeout ->
-                    editorView.trigger 'jumpy:c'
+                    textEditorElement.trigger 'jumpy:c'
                 ,100 + 10 # max default I'd probably use + a buffer
             runs ->
-                expect(editorView.querySelectorAll('.beacon')).not.toExist()
+                expect(textEditorElement.querySelectorAll('.beacon')).not.toExist()
 
     describe "when the jumpy:toggle event is triggered", ->
         it "updates the status bar", ->


    describe "when the jumpy:clear event is triggered", ->
        it "clears labels", ->
            editorView.trigger 'jumpy:clear'
            expect(editorView.querySelectorAll('.jumpy')).not.toExist()

    describe "when the jumpy:toggle event is triggered
        and a mousedown event is fired", ->
        it "jumpy is cleared", ->
            editorView.trigger 'mousedown'
            expect(editorView.querySelectorAll('.jumpy')).not.toExist()

    describe "when the jumpy:toggle event is triggered
        and a scroll event is fired", ->
        it "jumpy is cleared", ->
            editorView.trigger 'scroll'
            expect(editorView.querySelectorAll('.jumpy')).not.toExist()

    describe "when the jumpy:toggle event is triggered
        and hotkeys are entered", ->
        it "jumpy is cleared", ->
            editor.setCursorBufferPosition [1,1]
            editorView.trigger 'jumpy:a'
            editorView.trigger 'jumpy:c'
            expect(editorView.querySelectorAll('.jumpy')).not.toExist()

    describe "when the jumpy:toggle event is triggered
        and invalid hotkeys are entered", ->
        it "jumpy is cleared", ->
            editor.setCursorBufferPosition [1,1]
            editorView.trigger 'jumpy:z'
            editorView.trigger 'jumpy:z'
            cursorPosition = editor.getCursorBufferPosition()
            expect(cursorPosition.row).toBe 1
            expect(cursorPosition.column).toBe 1

                ?.querySelectorAll('#status-bar-jumpy .status')
                    .html() == 'No match!').toBeTruthy()
        it "eventually clears the status bar error message", ->
            textEditorElement.trigger 'jumpy:toggle'
            textEditorElement.trigger 'jumpy:z'
            textEditorElement.trigger 'jumpy:a'
            expect(atom.workspaceView.statusBar
                ?.querySelectorAll '#status-bar-jumpy'
                    .hasClass 'no-match').toBeFalsy()
