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:
gmandakini
2019-04-21 23:42:59 +01:00
committed by Eugenio Romano
parent 97ad54a4f8
commit e85b57876e
69 changed files with 369 additions and 351 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { LoginPage } from '@alfresco/adf-testing';
import { LoginPage, LocalStorageUtil } from '@alfresco/adf-testing';
import { SearchDialog } from '../../pages/adf/dialog/searchDialog';
import { DataTableComponentPage } from '@alfresco/adf-testing';
import { SearchResultsPage } from '../../pages/adf/searchResultsPage';
@@ -32,7 +32,6 @@ import { browser } from 'protractor';
import resources = require('../../util/resources');
import { SearchConfiguration } from '../search.config';
import { DateUtil } from '../../util/dateUtil';
import { setConfigField } from '../../proxy';
describe('Search Number Range Filter', () => {
@@ -397,12 +396,12 @@ describe('Search Number Range Filter', () => {
jsonFile = searchConfiguration.getConfiguration();
});
it('[C276928] Should be able to change the field property for number range', async() => {
it('[C276928] Should be able to change the field property for number range', async () => {
navigationBar.clickContentServicesButton();
jsonFile.categories[3].component.settings.field = 'cm:created';
await setConfigField('search', JSON.stringify(jsonFile));
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
searchDialog.checkSearchIconIsVisible()
.clickOnSearchIcon()
@@ -439,12 +438,12 @@ describe('Search Number Range Filter', () => {
});
it('[C277139] Should be able to set To field to be exclusive', async() => {
it('[C277139] Should be able to set To field to be exclusive', async () => {
navigationBar.clickContentServicesButton();
jsonFile.categories[3].component.settings.format = '[{FROM} TO {TO}>';
await setConfigField('search', JSON.stringify(jsonFile));
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
searchDialog.checkSearchIconIsVisible()
.clickOnSearchIcon()
@@ -475,12 +474,12 @@ describe('Search Number Range Filter', () => {
searchResults.checkContentIsDisplayed(file2BytesModel.name);
});
it('[C277140] Should be able to set From field to be exclusive', async() => {
it('[C277140] Should be able to set From field to be exclusive', async () => {
navigationBar.clickContentServicesButton();
jsonFile.categories[3].component.settings.format = '<{FROM} TO {TO}]';
await setConfigField('search', JSON.stringify(jsonFile));
await LocalStorageUtil.setConfigField('search', JSON.stringify(jsonFile));
searchDialog.checkSearchIconIsVisible()
.clickOnSearchIcon()