mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
ix build (#6347)
* create after e2e and before e2e script * permission test exclude * flaky exclude * fix * chmod permission * modify check cs * fix * execute * fix * fix
This commit is contained in:
@@ -81,7 +81,7 @@ describe('Search Checklist Component', () => {
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
await searchBarPage.checkSearchIconIsVisible();
|
||||
await searchBarPage.clickOnSearchIcon();
|
||||
await searchBarPage.enterTextAndPressEnter(randomName);
|
||||
@@ -147,7 +147,7 @@ describe('Search Checklist Component', () => {
|
||||
});
|
||||
|
||||
it('[C277143] Should be able to click show more/less button with pageSize set as default', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
for (let numberOfOptions = 0; numberOfOptions < 8; numberOfOptions++) {
|
||||
jsonFile.categories[1].component.settings.options.push({
|
||||
@@ -185,7 +185,7 @@ describe('Search Checklist Component', () => {
|
||||
});
|
||||
|
||||
it('[C277144] Should be able to click show more/less button with pageSize set with a custom value', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile.categories[1].component.settings.pageSize = 10;
|
||||
|
||||
@@ -209,7 +209,7 @@ describe('Search Checklist Component', () => {
|
||||
|
||||
await searchFiltersPage.checkListFiltersPage().checkShowMoreButtonIsNotDisplayed();
|
||||
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
jsonFile.categories[1].component.settings.pageSize = 11;
|
||||
|
||||
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
|
||||
@@ -225,7 +225,7 @@ describe('Search Checklist Component', () => {
|
||||
|
||||
await searchFiltersPage.checkListFiltersPage().checkShowMoreButtonIsNotDisplayed();
|
||||
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile.categories[1].component.settings.pageSize = 9;
|
||||
|
||||
@@ -242,7 +242,7 @@ describe('Search Checklist Component', () => {
|
||||
});
|
||||
|
||||
it('[C277145] Should be able to click show more/less button with pageSize set to zero', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile.categories[1].component.settings.pageSize = 0;
|
||||
|
||||
@@ -276,7 +276,7 @@ describe('Search Checklist Component', () => {
|
||||
await searchFiltersPage.checkListFiltersPage().checkShowMoreButtonIsNotDisplayed();
|
||||
await searchFiltersPage.checkListFiltersPage().checkShowLessButtonIsDisplayed();
|
||||
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
delete jsonFile.categories[1].component.settings.pageSize;
|
||||
|
||||
@@ -308,7 +308,7 @@ describe('Search Checklist Component', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
jsonFile = SearchConfiguration.getConfiguration();
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
});
|
||||
|
||||
it('[C277018] Should be able to change the operator', async () => {
|
||||
|
@@ -176,7 +176,7 @@ describe('Search Date Range Filter', () => {
|
||||
});
|
||||
|
||||
it('[C277117] Should be able to change date format', async () => {
|
||||
await navigationBar.clickContentServicesButton();
|
||||
await navigationBar.navigateToContentServices();
|
||||
|
||||
jsonFile.categories[4].component.settings.dateFormat = 'MM-DD-YY';
|
||||
|
||||
|
@@ -379,7 +379,7 @@ describe('Search Number Range Filter', () => {
|
||||
});
|
||||
|
||||
it('[C276928] Should be able to change the field property for number range', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile.categories[3].component.settings.field = 'cm:created';
|
||||
|
||||
@@ -418,7 +418,7 @@ describe('Search Number Range Filter', () => {
|
||||
});
|
||||
|
||||
it('[C277139] Should be able to set To field to be exclusive', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile.categories[3].component.settings.format = '[{FROM} TO {TO}>';
|
||||
|
||||
@@ -457,7 +457,7 @@ describe('Search Number Range Filter', () => {
|
||||
});
|
||||
|
||||
it('[C277140] Should be able to set From field to be exclusive', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile.categories[3].component.settings.format = '<{FROM} TO {TO}]';
|
||||
|
||||
|
@@ -135,7 +135,7 @@ describe('Search Radio Component', () => {
|
||||
});
|
||||
|
||||
it('[C277147] Should be able to customise the pageSize value', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile.categories[5].component.settings.pageSize = 10;
|
||||
|
||||
@@ -157,7 +157,7 @@ describe('Search Radio Component', () => {
|
||||
|
||||
await expect(await searchFiltersPage.typeFiltersPage().getRadioButtonsNumberOnPage()).toBe(10);
|
||||
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile.categories[5].component.settings.pageSize = 11;
|
||||
|
||||
@@ -172,7 +172,7 @@ describe('Search Radio Component', () => {
|
||||
|
||||
await expect(await searchFiltersPage.typeFiltersPage().getRadioButtonsNumberOnPage()).toBe(10);
|
||||
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
jsonFile.categories[5].component.settings.pageSize = 9;
|
||||
|
||||
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
|
||||
@@ -193,7 +193,7 @@ describe('Search Radio Component', () => {
|
||||
});
|
||||
|
||||
it('[C277148] Should be able to click show more/less button', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile.categories[5].component.settings.pageSize = 0;
|
||||
|
||||
@@ -232,7 +232,7 @@ describe('Search Radio Component', () => {
|
||||
await searchFiltersPage.typeFiltersPage().checkShowMoreButtonIsDisplayed();
|
||||
await searchFiltersPage.typeFiltersPage().checkShowLessButtonIsNotDisplayed();
|
||||
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
delete jsonFile.categories[5].component.settings.pageSize;
|
||||
|
||||
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
|
||||
@@ -278,7 +278,7 @@ describe('Search Radio Component', () => {
|
||||
});
|
||||
|
||||
it('[C277033] Should be able to add a new option', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile.categories[5].component.settings.options.push({
|
||||
'name': filterType.custom,
|
||||
|
@@ -154,7 +154,7 @@ describe('Search Slider Filter', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
jsonFile = SearchConfiguration.getConfiguration();
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
});
|
||||
|
||||
it('[C276983] Should be able to disable thumb label in Search Size Slider', async () => {
|
||||
|
@@ -101,7 +101,7 @@ describe('Search Sorting Picker', () => {
|
||||
});
|
||||
|
||||
it('[C277271] Should be able to add a custom search sorter in the "sort by" option', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
jsonFile = SearchConfiguration.getConfiguration();
|
||||
jsonFile.sorting.options.push({
|
||||
'key': 'Modifier',
|
||||
@@ -124,7 +124,7 @@ describe('Search Sorting Picker', () => {
|
||||
});
|
||||
|
||||
it('[C277272] Should be able to exclude a standard search sorter from the sorting option', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
jsonFile = SearchConfiguration.getConfiguration();
|
||||
const removedOption = jsonFile.sorting.options.splice(0, 1);
|
||||
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
|
||||
@@ -141,7 +141,7 @@ describe('Search Sorting Picker', () => {
|
||||
});
|
||||
|
||||
it('[C277273] Should be able to set a default order for a search sorting option', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile = SearchConfiguration.getConfiguration();
|
||||
jsonFile.sorting.options[0].ascending = false;
|
||||
@@ -195,7 +195,7 @@ describe('Search Sorting Picker', () => {
|
||||
});
|
||||
|
||||
it('[C277288] Should be able to sort the search results by "Modified Date" ASC', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile = SearchConfiguration.getConfiguration();
|
||||
jsonFile.sorting.options.push({
|
||||
|
@@ -100,7 +100,7 @@ describe('Search component - Text widget', () => {
|
||||
|
||||
jsonFile.categories[0].component.settings.field = 'cm:description';
|
||||
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
|
||||
|
||||
await searchBarPage.clickOnSearchIcon();
|
||||
|
@@ -277,7 +277,7 @@ describe('Search component - Search Bar', () => {
|
||||
const searchConfiguration = SearchConfiguration.getConfiguration();
|
||||
|
||||
beforeAll(async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
await LocalStorageUtil.setConfigField('search', JSON.stringify(searchConfiguration));
|
||||
|
||||
|
@@ -216,7 +216,7 @@ describe('Search Filters', () => {
|
||||
});
|
||||
|
||||
it('[C299200] Should reset the filters facet with search query', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
await searchBarPage.checkSearchIconIsVisible();
|
||||
await searchBarPage.clickOnSearchIcon();
|
||||
await searchBarPage.enterTextAndPressEnter(fileTypeTxt1.entry.name);
|
||||
@@ -244,7 +244,7 @@ describe('Search Filters', () => {
|
||||
describe('Change config', () => {
|
||||
|
||||
it('[C291802] Should be able to filter facet fields with "Contains"', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile['filterWithContains'] = true;
|
||||
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
|
||||
@@ -258,7 +258,7 @@ describe('Search Filters', () => {
|
||||
});
|
||||
|
||||
it('[C291981] Should group search facets under the default label, by default', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
|
||||
|
||||
@@ -272,7 +272,7 @@ describe('Search Filters', () => {
|
||||
});
|
||||
|
||||
it('[C299124] Should be able to parse escaped empty spaced labels inside facetFields', async () => {
|
||||
await navigationBarPage.clickContentServicesButton();
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
||||
jsonFile.facetFields.fields[0].label = 'My File Types';
|
||||
jsonFile.facetFields.fields[1].label = 'My File Sizes';
|
||||
|
Reference in New Issue
Block a user