Fixed an issue where the search object module unable to locate the object in the browser tree. Fixes #5396

This commit is contained in:
Aditya Toshniwal
2020-04-20 18:27:36 +05:30
committed by Akshay Joshi
parent f282b26883
commit 7361470b64
9 changed files with 212 additions and 106 deletions

View File

@@ -421,7 +421,7 @@ describe('SearchObjectsDialogWrapper', () => {
});
it('finaliseData', ()=>{
spyOn(soDialogWrapper, 'translateSearchObjectsPath').and.returnValue(['disp/path', 'id/path']);
spyOn(soDialogWrapper, 'translateSearchObjectsPath').and.returnValue(['disp/path', ['obj1/123', 'obj2/432']]);
let data = soDialogWrapper.finaliseData({
name: 'objname',
type: 'sometype',
@@ -430,13 +430,13 @@ describe('SearchObjectsDialogWrapper', () => {
show_node: true,
});
expect(data).toEqual({
id: 'id/path',
id: 'obj1/123.obj2/432',
icon: 'icon-sometype',
name: 'objname',
type: 'sometype',
type_label: 'Some types coll',
path: 'disp/path',
id_path: 'id/path',
id_path: ['obj1/123', 'obj2/432'],
show_node: true,
});
});