       el: $("#widget-default")
 
     $(document).on "ajaxStop", ->
-      expect(widget.$(".epages-shop-category-list").html()).toEqual ""
-      expect(widget.$(".epages-shop-search-form form").length).toEqual 1
-      expect(widget.$(".epages-shop-sort a").length).toEqual 3
+      expect(widget.hasCategoryList()).toBeFalsy()
+      expect(widget.hasSearchForm()).toBeTruthy()
+      expect(widget.hasSorting()).toBeTruthy()
       done()
 
   it "allows disabled search form and sort", (done) ->

  hasProductList: =>
    @$(".epages-shop-product").length > 0

  isReady: =>
    @hasCategoryList() && @hasProductList()

  variationsLoaded: =>
    $(".pico-content").find(".epages-shop-variation").length > 0

  hasCategoryOption: (name) =>

      el: $("#widget-disabled")

    $(document).on "ajaxStop", ->
      expect(widget.hasCategoryList()).toBeFalsy()
      expect(widget.hasSearchForm()).toBeFalsy()
      expect(widget.hasSorting()).toBeFalsy()
      done()
