     describe "when flashing a decoration via Decoration::flash()", ->
       highlightNode = null
       beforeEach ->
-        highlightNode = componentNode.querySelector('.test-highlight')
+        highlightNode = componentNode.querySelectorAll('.test-highlight')[1]
 
       it "adds and removes the flash class specified in ::flash", ->
         expect(highlightNode.classList.contains('flash-class')).toBe false

    it "allows multiple space-delimited decoration classes", ->
      decoration.setProperties(type: 'highlight', class: 'foo bar')
      nextAnimationFrame()
      expect(componentNode.querySelectorAll('.foo.bar').length).toBe 1
      decoration.setProperties(type: 'highlight', class: 'bar baz')
      nextAnimationFrame()
      expect(componentNode.querySelectorAll('.bar.baz').length).toBe 1

    it "renders classes on the regions directly if 'deprecatedRegionClass' option is defined", ->
      decoration = editor.decorateMarker(marker, type: 'highlight', class: 'test-highlight', deprecatedRegionClass: 'test-highlight-region')


      expect(regions.length).toBe 1
      regionRect = regions[0].style
      expect(regionRect.top).toBe (0 + 'px')
      expect(regionRect.height).toBe 1 * lineHeightInPixels + 'px'
      expect(regionRect.left).toBe 2 * charWidth + 'px'
      expect(regionRect.width).toBe 2 * charWidth + 'px'
