mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-3497] Facet intervals on search filter (#4255)
* [ADF-3497] allow facetIntervals on search * [ADF-3497] update schema json * [ADF-3497] update json * [ADF-3497] documentation update * [ADF-3497] specify that sets are not supported * [ADF-3497] no spaces on labels - mention * [ADF-3497] documentation update * [ADF-3497] update examples & document label key * [ADF-3497] tests added * [ADF-3497] testRail id * [ADF-3497] allow config of custom pageSize values * [ADF-3497] support mincount filtering also for intervals * [ADF-3497] support expanded property also for facetIntervals * remove no longer needed info - bcs. of PR #4322 fix
This commit is contained in:
committed by
Eugenio Romano
parent
f20a71438c
commit
e34f80aff7
@@ -37,6 +37,8 @@ export class SearchFiltersPage {
|
||||
'mat-expansion-panel[data-automation-id="expansion-panel-My facet queries"]'));
|
||||
facetQueriesTypeGroup = element(by.css('mat-expansion-panel[data-automation-id="expansion-panel-Type facet queries"]'));
|
||||
facetQueriesSizeGroup = element(by.css('mat-expansion-panel[data-automation-id="expansion-panel-Size facet queries"]'));
|
||||
facetIntervalsByCreated = element(by.css('mat-expansion-panel[data-automation-id="expansion-panel-TheCreated"]'));
|
||||
facetIntervalsByModified = element(by.css('mat-expansion-panel[data-automation-id="expansion-panel-TheModified"]'));
|
||||
|
||||
checkSearchFiltersIsDisplayed() {
|
||||
Util.waitUntilElementIsVisible(this.searchFilters);
|
||||
@@ -110,6 +112,16 @@ export class SearchFiltersPage {
|
||||
return this;
|
||||
}
|
||||
|
||||
checkFacetIntervalsByCreatedIsDisplayed() {
|
||||
this.searchCategoriesPage.checkFilterIsDisplayed(this.facetIntervalsByCreated);
|
||||
return this;
|
||||
}
|
||||
|
||||
checkFacetIntervalsByModifiedIsDisplayed() {
|
||||
this.searchCategoriesPage.checkFilterIsDisplayed(this.facetIntervalsByModified);
|
||||
return this;
|
||||
}
|
||||
|
||||
isTypeFacetQueryGroupPresent() {
|
||||
return this.facetQueriesTypeGroup.isPresent();
|
||||
}
|
||||
|
||||
@@ -207,4 +207,12 @@ describe('Search Filters', () => {
|
||||
expect(searchFiltersPage.isTypeFacetQueryGroupPresent()).toBe(false);
|
||||
expect(searchFiltersPage.isSizeFacetQueryGroupPresent()).toBe(false);
|
||||
});
|
||||
|
||||
it('[C297509] Should display search intervals under specified labels from config', () => {
|
||||
browser.get(TestConfig.adf.url + '/search;q=*');
|
||||
|
||||
searchFiltersPage.checkFacetIntervalsByCreatedIsDisplayed()
|
||||
.checkFacetIntervalsByModifiedIsDisplayed();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user