Skip to content

Commit

Permalink
Merge pull request #253 from nulib/3435-facet-group-labels
Browse files Browse the repository at this point in the history
Update language of facet groups.
  • Loading branch information
mathewjordan authored Mar 16, 2023
2 parents cc6a5b4 + 7a94151 commit 58c5eb2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion components/Facets/Filter/GroupList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ describe("FacetsGroupList component", () => {
it("renders facet aggregations when a facet is clicked upon", async () => {
const user = userEvent.setup();
renderHelper();
await user.click(screen.getByText("Subject and Descriptive"));

const sAndDEl = await screen.findByText("Subjects and Descriptive");
const sAndDEl = await screen.findByText("Subject and Descriptive");
await user.click(sAndDEl);

const el = await screen.findByText("Genre");
Expand Down
16 changes: 8 additions & 8 deletions lib/constants/facets-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,11 @@ export const FACETS_DESCRIPTIVE: FacetsGroup = {
label: "Work Type",
},
],
label: "Subjects and Descriptive",
label: "Subject and Descriptive",
};

export const FACETS_LOCATION: FacetsGroup = {
facets: [
{
field: "library_unit",
id: "libraryDepartment",
label: "Library Department",
},
{
field: "collection.title",
id: "collection",
Expand All @@ -197,13 +192,18 @@ export const FACETS_LOCATION: FacetsGroup = {
id: "folderNumber",
label: "Folder Number",
},
{
field: "library_unit",
id: "libraryDepartment",
label: "Library Department",
},
],
label: "Location",
label: "Collection and Location",
};

export const FACETS: FacetsGroup[] = [
FACETS_DESCRIPTIVE,
FACETS_CREATOR,
FACETS_LOCATION,
FACETS_CREATOR,
FACETS_RIGHTS_USAGE,
];

0 comments on commit 58c5eb2

Please sign in to comment.