// Enabled facets
expect(ui.inNewCodeFilter.get()).toBeInTheDocument();
expect(ui.typeFacet.get()).toBeInTheDocument();
- expect(ui.cleanCodeAttributeCategoryFacet.get()).toBeInTheDocument();
- expect(ui.softwareQualityFacet.get()).toBeInTheDocument();
// Disabled facets
+ expect(ui.cleanCodeAttributeCategoryFacet.query()).not.toBeInTheDocument();
+ expect(ui.softwareQualityFacet.query()).not.toBeInTheDocument();
expect(ui.assigneeFacet.query()).not.toBeInTheDocument();
expect(ui.authorFacet.query()).not.toBeInTheDocument();
expect(ui.codeVariantsFacet.query()).not.toBeInTheDocument();
/>
)}
- <AttributeCategoryFacet
- fetching={this.props.loadingFacets.cleanCodeAttributeCategories === true}
- needIssueSync={needIssueSync}
- onChange={this.props.onFilterChange}
- onToggle={this.props.onFacetToggle}
- open={!!openFacets.cleanCodeAttributeCategories}
- stats={facets.cleanCodeAttributeCategories}
- categories={query.cleanCodeAttributeCategories}
- />
- <BasicSeparator className="sw-my-4" />
+ {!needIssueSync && (
+ <>
+ <AttributeCategoryFacet
+ fetching={this.props.loadingFacets.cleanCodeAttributeCategories === true}
+ needIssueSync={needIssueSync}
+ onChange={this.props.onFilterChange}
+ onToggle={this.props.onFacetToggle}
+ open={!!openFacets.cleanCodeAttributeCategories}
+ stats={facets.cleanCodeAttributeCategories}
+ categories={query.cleanCodeAttributeCategories}
+ />
- <SoftwareQualityFacet
- fetching={this.props.loadingFacets.impactSoftwareQualities === true}
- needIssueSync={needIssueSync}
- onChange={this.props.onFilterChange}
- onToggle={this.props.onFacetToggle}
- open={!!openFacets.impactSoftwareQualities}
- stats={facets.impactSoftwareQualities}
- qualities={query.impactSoftwareQualities}
- />
+ <BasicSeparator className="sw-my-4" />
- <BasicSeparator className="sw-my-4" />
+ <SoftwareQualityFacet
+ fetching={this.props.loadingFacets.impactSoftwareQualities === true}
+ needIssueSync={needIssueSync}
+ onChange={this.props.onFilterChange}
+ onToggle={this.props.onFacetToggle}
+ open={!!openFacets.impactSoftwareQualities}
+ stats={facets.impactSoftwareQualities}
+ qualities={query.impactSoftwareQualities}
+ />
+
+ <BasicSeparator className="sw-my-4" />
- {!needIssueSync && (
- <>
<SeverityFacet
fetching={this.props.loadingFacets.impactSeverities === true}
onChange={this.props.onFilterChange}