mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-4083] Parse 'escaped' empty spaced labels inside facetFields (#4390)
* C299124 - automated * C299124 - automated
This commit is contained in:
committed by
Eugenio Romano
parent
88b49b8c66
commit
117170a433
@@ -68,6 +68,10 @@ export class SearchFiltersPage {
|
|||||||
return this.searchCategoriesPage.checkListFiltersPage(this.fileTypeFilter);
|
return this.searchCategoriesPage.checkListFiltersPage(this.fileTypeFilter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkCustomFacetFieldLabelIsDisplayed(fieldLabel) {
|
||||||
|
Util.waitUntilElementIsVisible(element(by.css(`mat-expansion-panel[data-automation-id="expansion-panel-${fieldLabel}"]`)));
|
||||||
|
}
|
||||||
|
|
||||||
sizeSliderFilterPage() {
|
sizeSliderFilterPage() {
|
||||||
return this.searchCategoriesPage.sliderFilter(this.sizeSliderFilter);
|
return this.searchCategoriesPage.sliderFilter(this.sizeSliderFilter);
|
||||||
}
|
}
|
||||||
|
@@ -225,4 +225,21 @@ describe('Search Filters', () => {
|
|||||||
.checkFacetIntervalsByModifiedIsExpanded();
|
.checkFacetIntervalsByModifiedIsExpanded();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('[C299124] Should be able to parse escaped empty spaced labels inside facetFields', () => {
|
||||||
|
navigationBar.clickConfigEditorButton();
|
||||||
|
configEditor.clickSearchConfiguration();
|
||||||
|
configEditor.clickClearButton();
|
||||||
|
jsonFile.facetFields.fields[0].label = 'My File Types';
|
||||||
|
jsonFile.facetFields.fields[1].label = 'My File Sizes';
|
||||||
|
configEditor.enterBigConfigurationText(JSON.stringify(jsonFile));
|
||||||
|
configEditor.clickSaveButton();
|
||||||
|
|
||||||
|
searchDialog.clickOnSearchIcon()
|
||||||
|
.enterTextAndPressEnter('*');
|
||||||
|
|
||||||
|
searchResults.tableIsLoaded();
|
||||||
|
searchFiltersPage.checkCustomFacetFieldLabelIsDisplayed('My File Types');
|
||||||
|
searchFiltersPage.checkCustomFacetFieldLabelIsDisplayed('My File Sizes');
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user