           atom.config.set('highlight-line.hideHighlightOnSelect', true)
 
         it "will have a highlight when there is no text selected", ->
-          expect(editorElement.shadowRoot
+          expect(editorElement
             .querySelectorAll('.cursor-line.highlight-line')
           ).toHaveLength(1)
 
         it "won`t have a highlight when there is text selected", ->
           range = new Range(new Point(8, 2), new Point(8, 5))
           editor.setSelectedBufferRange(range)
-          expect(editorElement.shadowRoot
+          expect(editorElement
             .querySelectorAll('.cursor-line.highlight-line')
           ).toHaveLength(0)
 

        editor.setSelectedBufferRange(range)

      it "adds the background class to the cursor line", ->
        expect(editorElement.shadowRoot
          .querySelectorAll('.cursor-line.highlight-line')
        ).toHaveLength(1)

      describe "when hide highlight on select is enabled", ->

        editor.setSelectedBufferRanges([range1, range2])

      it 'adds the background class to the cursor line', ->
        expect(
          editorElement.querySelectorAll('.cursor-line.highlight-line')
        ).toHaveLength(2)

    describe "when there is a multi row selection", ->
