mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
GH Auto: Upstream dependencies ADF:8.4.0-20263963188 JS-API:9.4.0-20263963188 using Tag:8.4.0-20263963188 (#4949)
* [ci:force][auto-commit] Update dependencies ADF:8.4.0-20263963188 JS:9.4.0-20263963188 * unit tests fix * adds value to icon prop --------- Co-authored-by: rmnvch <90370279+rmnvch@users.noreply.github.com> Co-authored-by: Anton Ramanovich <Anton.Ramanovich@hyland.com>
This commit is contained in:
co-authored by
rmnvch
Anton Ramanovich
parent
7fce413bc3
commit
1389b33068
+2
-1
@@ -49,7 +49,8 @@ describe('ContextMenuComponent', () => {
|
||||
title: 'Test Button',
|
||||
actions: {
|
||||
click: 'TEST_EVENT'
|
||||
}
|
||||
},
|
||||
icon: 'icon-name'
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -60,7 +60,8 @@ describe('ContextMenuComponent', () => {
|
||||
title: 'Test Button',
|
||||
actions: {
|
||||
click: 'TEST_EVENT'
|
||||
}
|
||||
},
|
||||
icon: 'icon-name'
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
@@ -136,7 +137,8 @@ describe('ContextMenuComponent', () => {
|
||||
title: 'Button 2',
|
||||
actions: {
|
||||
click: 'EVENT_2'
|
||||
}
|
||||
},
|
||||
icon: 'icon-name'
|
||||
};
|
||||
|
||||
const orderedActions = [contextItem, customComponentAction, buttonAction2];
|
||||
|
||||
@@ -46,7 +46,8 @@ describe('ContextMenuService', () => {
|
||||
title: 'action',
|
||||
actions: {
|
||||
click: 'event'
|
||||
}
|
||||
},
|
||||
icon: 'icon-name'
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
+4
-2
@@ -43,7 +43,8 @@ describe('ContextMenuComponent', () => {
|
||||
title: 'action1',
|
||||
actions: {
|
||||
click: 'event1'
|
||||
}
|
||||
},
|
||||
icon: 'icon-name'
|
||||
},
|
||||
{
|
||||
type: ContentActionType.button,
|
||||
@@ -51,7 +52,8 @@ describe('ContextMenuComponent', () => {
|
||||
title: 'action2',
|
||||
actions: {
|
||||
click: 'event2'
|
||||
}
|
||||
},
|
||||
icon: 'icon-name'
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
+2
-2
@@ -48,7 +48,7 @@ describe('ButtonMenuComponent', () => {
|
||||
component.item = {
|
||||
id: 'test-action-button',
|
||||
url: 'dummy',
|
||||
icon: null,
|
||||
icon: 'icon-name',
|
||||
title: null,
|
||||
route: null
|
||||
};
|
||||
@@ -62,7 +62,7 @@ describe('ButtonMenuComponent', () => {
|
||||
it('should render action item with children', () => {
|
||||
component.item = {
|
||||
id: 'test-action-button',
|
||||
icon: null,
|
||||
icon: 'icon-name',
|
||||
title: null,
|
||||
route: null,
|
||||
children: [
|
||||
|
||||
+6
-1
@@ -42,7 +42,12 @@ describe('UserMenuComponent', () => {
|
||||
testingUtils = new UnitTestingUtils(fixture.debugElement);
|
||||
|
||||
component = fixture.componentInstance;
|
||||
component.data = { items: [{ id: 'id-1' }, { id: 'id-2' }] };
|
||||
component.data = {
|
||||
items: [
|
||||
{ id: 'id-1', icon: 'icon-name' },
|
||||
{ id: 'id-2', icon: 'icon-name' }
|
||||
]
|
||||
};
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
|
||||
+2
-1
@@ -67,7 +67,8 @@ describe('ToolbarButtonComponent', () => {
|
||||
type: ContentActionType.button,
|
||||
actions: {
|
||||
click: 'ON_CLICK'
|
||||
}
|
||||
},
|
||||
icon: 'icon-name'
|
||||
};
|
||||
|
||||
fixture.detectChanges();
|
||||
|
||||
+4
-2
@@ -67,7 +67,8 @@ describe('ToolbarMenuItemComponent', () => {
|
||||
type: ContentActionType.button,
|
||||
actions: {
|
||||
click: 'ON_CLICK'
|
||||
}
|
||||
},
|
||||
icon: 'icon-name'
|
||||
};
|
||||
|
||||
fixture.detectChanges();
|
||||
@@ -91,7 +92,8 @@ describe('ToolbarMenuItemComponent', () => {
|
||||
type: ContentActionType.button,
|
||||
actions: {
|
||||
click: 'ON_CLICK'
|
||||
}
|
||||
},
|
||||
icon: 'icon-name'
|
||||
};
|
||||
|
||||
fixture.detectChanges();
|
||||
|
||||
Reference in New Issue
Block a user