Skip to content

Commit

Permalink
test(filters): ci test2
Browse files Browse the repository at this point in the history
  • Loading branch information
valoriecarli committed Oct 31, 2024
1 parent bc9cdc8 commit 1479d2c
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions packages/components/filters/src/filters.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -312,33 +312,33 @@ describe('Filters', () => {
expect(chips).toEqual(['Lavender', 'Cobalt']);
});

// it('should render a badge on initial page load when >=2 appliedFilters are passed', async () => {
// // Pass in initial appliedFilters
// const appliedColorFilters = [
// {
// filterKey: 'primaryColors',
// values: [
// { label: 'Lavender', value: 'lavender' },
// { label: 'Cobalt', value: 'cobalt' },
// ],
// },
// {
// filterKey: 'colorName',
// values: [{ label: 'Green', value: 'green' }],
// },
// ];

// render(
// <FilterTestComponent
// {...createTestProps({ appliedFilters: appliedColorFilters })}
// />
// );

// //Expect badge to display count of applied filters
// const filterTotalBadge = getBadgeElement();
// expect(filterTotalBadge).toHaveTextContent('2');
// expect(filterTotalBadge).toBeVisible();
// });
it('should render a badge on initial page load when >=2 appliedFilters are passed', async () => {
// Pass in initial appliedFilters
const appliedColorFilters = [
{
filterKey: 'primaryColors',
values: [
{ label: 'Lavender', value: 'lavender' },
{ label: 'Cobalt', value: 'cobalt' },
],
},
{
filterKey: 'colorName',
values: [{ label: 'Green', value: 'green' }],
},
];

render(
<FilterTestComponent
{...createTestProps({ appliedFilters: appliedColorFilters })}
/>
);

//Expect badge to display count of applied filters
const filterTotalBadge = getBadgeElement();
expect(filterTotalBadge).toHaveTextContent('2');
expect(filterTotalBadge).toBeVisible();
});

// it('should immediately render a filter when isPersistent is true', async () => {
// render(<FilterTestComponent {...createTestProps()} isPersistent={true} />);
Expand Down

0 comments on commit 1479d2c

Please sign in to comment.