diff --git a/src/Apps/Artist/Routes/Overview/Components/ArtistArtworkFilter.tsx b/src/Apps/Artist/Routes/Overview/Components/ArtistArtworkFilter.tsx index d01a917373..7e31829711 100644 --- a/src/Apps/Artist/Routes/Overview/Components/ArtistArtworkFilter.tsx +++ b/src/Apps/Artist/Routes/Overview/Components/ArtistArtworkFilter.tsx @@ -5,7 +5,7 @@ import { ArtworkFilterContextProvider } from "Components/v2/ArtworkFilter/Artwor import { updateUrl } from "Components/v2/ArtworkFilter/Utils/urlBuilder" import { Match, RouterState, withRouter } from "found" import React from "react" -import { createRefetchContainer, graphql, RelayRefetchProp } from "react-relay" +import { RelayRefetchProp, createRefetchContainer, graphql } from "react-relay" import { ZeroState } from "./ZeroState" interface ArtistArtworkFilterProps { @@ -30,6 +30,8 @@ const ArtistArtworkFilter: React.FC = props => { filters={match && match.location.query} sortOptions={[ { value: "-decayed_merch", text: "Default" }, + { value: "-has_price,-prices", text: "Price (desc.)" }, + { value: "-has_price,prices", text: "Price (asc.)" }, { value: "-partner_updated_at", text: "Recently updated" }, { value: "-published_at", text: "Recently added" }, { value: "-year", text: "Artwork year (desc.)" }, diff --git a/src/Apps/Artist/Routes/Works/__tests__/Works.test.tsx b/src/Apps/Artist/Routes/Works/__tests__/Works.test.tsx index 1edd2b0fa2..c052c7746e 100644 --- a/src/Apps/Artist/Routes/Works/__tests__/Works.test.tsx +++ b/src/Apps/Artist/Routes/Works/__tests__/Works.test.tsx @@ -60,6 +60,21 @@ describe("Works Route", () => { expect(wrapper.html()).toContain("Mock ArtistRecommendations") expect(wrapper.html()).toContain("Mock ArtistCollectionRail") }) + it("includes the correct sort options", () => { + const sortOptions = wrapper + .find("div[title='Sort'] select option") + .map(el => el.text()) + + expect(sortOptions).toEqual([ + "Default", + "Price (desc.)", + "Price (asc.)", + "Recently updated", + "Recently added", + "Artwork year (desc.)", + "Artwork year (asc.)", + ]) + }) }) describe("Artist Recommendations", () => {