mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Added a new LocalStorageUtil and using the setConfigMethod to set the local storage variables (#4575)
* added a new LocalStorageUtil and using the setConfigMethod to set the localstorage variables, instead of using hte settings ui page. * linting fix * fixing import paths * update new path LocalStorageUtil * fix problems after rebase * fix async loadin and clear * local storage fix * fix lint * fix cs tests * fix tag navigation and rename file appNavigation to processTabNavigation * fix lint * fix process test * fix lint Signed-off-by: Eugenio Romano <eugenio.romano@alfresco.com> * fix start process cloud * inc timeout
This commit is contained in:
committed by
Eugenio Romano
parent
97ad54a4f8
commit
e85b57876e
@@ -24,14 +24,13 @@ import TestConfig = require('../../test.config');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
|
||||
import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { LoginPage, LocalStorageUtil } from '@alfresco/adf-testing';
|
||||
import { SearchDialog } from '../../pages/adf/dialog/searchDialog';
|
||||
import { SearchResultsPage } from '../../pages/adf/searchResultsPage';
|
||||
import { SearchFiltersPage } from '../../pages/adf/searchFiltersPage';
|
||||
import { NavigationBarPage } from '../../pages/adf/navigationBarPage';
|
||||
|
||||
import { SearchConfiguration } from '../search.config';
|
||||
import { setConfigField } from '../../proxy';
|
||||
|
||||
describe('Search component - Text widget', () => {
|
||||
|
||||
@@ -43,7 +42,7 @@ describe('Search component - Text widget', () => {
|
||||
const searchResultPage = new SearchResultsPage();
|
||||
|
||||
const acsUser = new AcsUserModel();
|
||||
const newFolderModel = new FolderModel({'name': 'newFolder', 'description': 'newDescription'});
|
||||
const newFolderModel = new FolderModel({ 'name': 'newFolder', 'description': 'newDescription' });
|
||||
|
||||
beforeAll(async (done) => {
|
||||
|
||||
@@ -91,7 +90,7 @@ describe('Search component - Text widget', () => {
|
||||
jsonFile = searchConfiguration.getConfiguration();
|
||||
});
|
||||
|
||||
it('[C289330] Should be able to change the Field setting', async() => {
|
||||
it('[C289330] Should be able to change the Field setting', async () => {
|
||||
browser.get(TestConfig.adf.url + '/search;q=*');
|
||||
searchResultPage.tableIsLoaded();
|
||||
|
||||
@@ -109,7 +108,7 @@ describe('Search component - Text widget', () => {
|
||||
jsonFile.categories[0].component.settings.field = 'cm:description';
|
||||
|
||||
navigationBarPage.clickContentServicesButton();
|
||||
await setConfigField('search', JSON.stringify(jsonFile));
|
||||
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
|
||||
|
||||
searchDialog.clickOnSearchIcon().enterTextAndPressEnter('*');
|
||||
searchResultPage.tableIsLoaded();
|
||||
|
Reference in New Issue
Block a user