diff --git a/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.html b/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.html index 6dfc1af47f0..97b58bea57a 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.html +++ b/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.html @@ -6,7 +6,7 @@ > diff --git a/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.spec.ts b/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.spec.ts index 4c19528016c..6896d56f8ee 100644 --- a/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.spec.ts +++ b/feature-libs/product-configurator/rulebased/components/overview-filter-button/configurator-overview-filter-button.component.spec.ts @@ -143,9 +143,21 @@ describe('ConfigurationOverviewFilterButtonComponent', () => { expect(htmlElem.classList.contains('ghost')).toBeFalsy(); }); - it('should render no filter button for variant', () => { + it('should render filter button for variant in case there is more than one group', () => { isDisplayOnlyVariant = true; - ovConfig.overview.possibleGroups = []; + fixture.detectChanges(); + + CommonConfiguratorTestUtilsService.expectElementPresent( + expect, + htmlElem, + '.cx-config-filter-button' + ); + }); + + it('should render no filter button for variant in case there is only one group', () => { + isDisplayOnlyVariant = true; + ovConfig.overview.possibleGroups = + ovConfig.overview.possibleGroups.slice(1); fixture.detectChanges(); CommonConfiguratorTestUtilsService.expectElementNotPresent(