                     .html() == 'a').toBeTruthy()
         it "does not jump", ->
             editor.setCursorBufferPosition [1,1]
-            editorView.trigger 'jumpy:z'
+            textEditorElement.trigger 'jumpy:z'
             cursorPosition = editor.getCursorBufferPosition()
             expect(cursorPosition.row).toBe 1
             expect(cursorPosition.column).toBe 1
         it "leaves the labels up", ->
             editor.setCursorBufferPosition [1,1]
-            editorView.trigger 'jumpy:z'
-            relevantLabels = editorView.querySelectorAll('.label:not(.irrelevant)')
+            textEditorElement.trigger 'jumpy:z'
+            relevantLabels = textEditorElement.querySelectorAll('.label:not(.irrelevant)')
             expect(relevantLabels.length > 0).toBeTruthy()

    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()
        it "the beacon animation class is removed", ->
            editorView.trigger 'jumpy:a'
            waitsFor ->
                setTimeout ->
                    editorView.trigger 'jumpy:c'
                ,100 + 10 # max default I'd probably use + a buffer
            runs ->
                expect(editorView.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", ->
            atom.commands.dispatch workspaceElement, 'jumpy:clear'
            expect(textEditorElement.querySelectorAll('.jumpy')).not.toExist()

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

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

    describe "when the jumpy:toggle event is triggered
        and hotkeys are entered", ->
        it "jumpy is cleared", ->
            editor.setCursorBufferPosition [1,1]
            textEditorElement.trigger 'jumpy:a'
            textEditorElement.trigger 'jumpy:c'
            expect(textEditorElement.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]
            textEditorElement.trigger 'jumpy:z'
            textEditorElement.trigger 'jumpy:z'
            cursorPosition = editor.getCursorBufferPosition()
            expect(cursorPosition.row).toBe 1
            expect(cursorPosition.column).toBe 1
