       changeInputValue element, "f"
       $rootScope.$digest()
 
-      expect($(".mac-menu-item").text()).toBe "foo"
+      expect(document.querySelector(".mac-menu-item").innerText).toBe "foo"
 
   describe "label", ->
     it "should use default 'name' label", ->


        $timeout.flush()

        element.trigger $.Event("keydown", {which: keys.ENTER})

      waitsFor ->
        return called


      $timeout.flush()

      menuEl = document.querySelector(".mac-menu")

      expect(menuEl.className.indexOf "test").not.toBe -1
      expect(menuEl.className.indexOf "hello").toBe -1

    it "should not have ng-class on menu element", ->
      $rootScope.source  = data
