From 0977dd51245feb2dc655524ab019ad8765e91837 Mon Sep 17 00:00:00 2001 From: Valorie Date: Thu, 31 Oct 2024 09:22:05 -0500 Subject: [PATCH] test(filters): ci test2 --- .../components/filters/src/filters.spec.tsx | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/packages/components/filters/src/filters.spec.tsx b/packages/components/filters/src/filters.spec.tsx index e35d974eb0..507b28d4eb 100644 --- a/packages/components/filters/src/filters.spec.tsx +++ b/packages/components/filters/src/filters.spec.tsx @@ -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( - // - // ); - - // //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( + + ); + + //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();