Skip to content

Commit

Permalink
Create a facets component which renders any facets returned
Browse files Browse the repository at this point in the history
by the search. If any hierarchical facets are returned, they
are rendered as standard facets.

J=BACK-2220
TEST=manual,auto

Manually tested this component on the test site and confirmed
it rendered all types of facets. Also added a storybook page
and automated tests and confirmed they passed.
  • Loading branch information
cea2aj committed Apr 28, 2023
1 parent e68a50e commit 777dfc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/components/StandardFacets.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react';
import { DisplayableFacetOption, FacetOption, Source, State, SearchActions } from '@yext/search-headless-react';
import { FacetOption, Source, State, SearchActions } from '@yext/search-headless-react';
import { mockAnswersHooks, spyOnActions } from '../__utils__/mocks';
import userEvent from '@testing-library/user-event';
import { DisplayableFacets } from '../__fixtures__/data/filters';
Expand Down

0 comments on commit 777dfc4

Please sign in to comment.