mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-5761] Demo Shell pages cleanup (#8802)
remove the content that is not covered by e2e testing, preparation steps for the demo shell decommissioning
This commit is contained in:
@@ -176,15 +176,10 @@ describe('Search Date Range Filter', () => {
|
||||
});
|
||||
|
||||
describe('configuration change', () => {
|
||||
let jsonFile;
|
||||
|
||||
beforeAll(async () => {
|
||||
jsonFile = SearchConfiguration.getConfiguration();
|
||||
});
|
||||
|
||||
it('[C277117] Should be able to change date format', async () => {
|
||||
await navigationBar.navigateToContentServices();
|
||||
|
||||
const jsonFile= SearchConfiguration.getConfiguration();
|
||||
jsonFile.categories[4].component.settings.dateFormat = 'MM-DD-YY';
|
||||
|
||||
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
|
||||
|
@@ -141,7 +141,7 @@ describe('Search Radio Component', () => {
|
||||
|
||||
for (let numberOfOptions = 0; numberOfOptions < 6; numberOfOptions++) {
|
||||
jsonFile.categories[5].component.settings.options.push({
|
||||
name: 'APP.SEARCH.RADIO.FOLDER',
|
||||
name: 'Folder',
|
||||
value: 'TYPE:\'cm:folder\''
|
||||
});
|
||||
}
|
||||
@@ -199,7 +199,7 @@ describe('Search Radio Component', () => {
|
||||
|
||||
for (let numberOfOptions = 0; numberOfOptions < 6; numberOfOptions++) {
|
||||
jsonFile.categories[5].component.settings.options.push({
|
||||
name: 'APP.SEARCH.RADIO.FOLDER',
|
||||
name: 'Folder',
|
||||
value: 'TYPE:\'cm:folder\''
|
||||
});
|
||||
}
|
||||
|
@@ -76,12 +76,6 @@ describe('Search component - Text widget', () => {
|
||||
});
|
||||
|
||||
describe('configuration change', () => {
|
||||
let jsonFile;
|
||||
|
||||
beforeAll(async () => {
|
||||
jsonFile = SearchConfiguration.getConfiguration();
|
||||
});
|
||||
|
||||
it('[C289330] Should be able to change the Field setting', async () => {
|
||||
await BrowserActions.getUrl(browser.baseUrl + '/search;q=*');
|
||||
await searchResultPage.tableIsLoaded();
|
||||
@@ -99,6 +93,7 @@ describe('Search component - Text widget', () => {
|
||||
await searchFiltersPage.textFiltersPage().searchByName(newFolderModel.description);
|
||||
await searchResultPage.checkContentIsNotDisplayed(newFolderModel.name);
|
||||
|
||||
const jsonFile= SearchConfiguration.getConfiguration();
|
||||
jsonFile.categories[0].component.settings.field = 'cm:description';
|
||||
|
||||
await navigationBarPage.navigateToContentServices();
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { browser, ElementFinder, protractor, $ } from 'protractor';
|
||||
import { ElementFinder, protractor, $ } from 'protractor';
|
||||
import { BrowserVisibility, BrowserActions, TestElement } from '@alfresco/adf-testing';
|
||||
|
||||
export class SearchBarPage {
|
||||
@@ -31,12 +31,6 @@ export class SearchBarPage {
|
||||
|
||||
getRowByRowName = (name: string): ElementFinder => $(`mat-list-item[data-automation-id='autocomplete_for_${name}']`);
|
||||
|
||||
async pressDownArrowAndEnter(): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.searchBar);
|
||||
await BrowserActions.clearSendKeys(this.searchBar, protractor.Key.ARROW_DOWN);
|
||||
await browser.actions().sendKeys(protractor.Key.ENTER).perform();
|
||||
}
|
||||
|
||||
async clickOnSearchIcon(): Promise<void> {
|
||||
await BrowserActions.click(this.searchIcon);
|
||||
}
|
||||
|
@@ -169,10 +169,10 @@ export class SearchConfiguration {
|
||||
field: null,
|
||||
pageSize: 5,
|
||||
options: [
|
||||
{name: 'APP.SEARCH.RADIO.NONE', value: '', default: true},
|
||||
{name: 'APP.SEARCH.RADIO.ALL', value: 'TYPE:\'cm:folder\' OR TYPE:\'cm:content\''},
|
||||
{name: 'APP.SEARCH.RADIO.FOLDER', value: 'TYPE:\'cm:folder\''},
|
||||
{name: 'APP.SEARCH.RADIO.DOCUMENT', value: 'TYPE:\'cm:content\''}
|
||||
{name: 'None', value: '', default: true},
|
||||
{name: 'All', value: 'TYPE:\'cm:folder\' OR TYPE:\'cm:content\''},
|
||||
{name: 'Folder', value: 'TYPE:\'cm:folder\''},
|
||||
{name: 'Document', value: 'TYPE:\'cm:content\''}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -188,8 +188,8 @@ export class SearchConfiguration {
|
||||
maxDate: 'today',
|
||||
field: 'cm:created, cm:modified',
|
||||
displayedLabelsByField: {
|
||||
"cm:created": 'Created Date',
|
||||
"cm:modified": 'Modified Date'
|
||||
'cm:created': 'Created Date',
|
||||
'cm:modified': 'Modified Date'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user