text: import renderTestComponent from "desktop/apps/auction/__tests__/utils/renderTestComponent"
  import FilterSort from "desktop/apps/auction/components/artwork_browser/header/FilterSort"
  import HeaderDesktop from "desktop/apps/auction/components/artwork_browser/header/HeaderDesktop"
  
  describe("auction/components/artwork_browser/header/HeaderDesktop.test", () => {
    describe("<HeaderDesktop />", () => {
      it("renders a <FilterSort /> component", () => {
        const { wrapper } = renderTestComponent({
          Component: HeaderDesktop,
        })
  
        wrapper.find(FilterSort).length.should.eql(1)
      })
  
      it("renders a grid icon", () => {
        const { wrapper } = renderTestComponent({
          Component: HeaderDesktop,
        })
  
        wrapper.find(".auction-artworks-HeaderDesktop__grid").length.should.eql(1)
      })
  
      it("renders a default grid icon", () => {
        const { wrapper } = renderTestComponent({
          Component: HeaderDesktop,
        })
  
        wrapper
          .html()
          .should.containEql("auction-artworks-HeaderDesktop__grid active")
      })
  
      it("renders a list icon", () => {
        const { wrapper } = renderTestComponent({
          Component: HeaderDesktop,
        })
  
        wrapper.find(".auction-artworks-HeaderDesktop__list").length.should.eql(1)
      })
  
      // FIXME: Reenable at some point
      xit("toggles a sort on click", () => {
        const { wrapper } = renderTestComponent({
          Component: HeaderDesktop,
        })
  
        const { store } = wrapper.props()
  
        wrapper.find(".auction-artworks-HeaderDesktop__list").simulate("click")
        store.getState().artworkBrowser.isListView.should.eql(true)
        wrapper
          .find(".auction-artworks-HeaderDesktop__list .active")
          .length.should.eql(1)
        wrapper
          .find(".auction-artworks-HeaderDesktop__grid .active")
          .length.should.eql(0)
  
        wrapper.find(".auction-artworks-HeaderDesktop__grid").simulate("click")
        store.getState().artworkBrowser.isListView.should.eql(false)
        wrapper
          .find(".auction-artworks-HeaderDesktop__list .active")
          .length.should.eql(0)
        wrapper
          .find(".auction-artworks-HeaderDesktop__grid .active")
          .length.should.eql(1)
      })
    })
  })
  