Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eokoneyo committed May 30, 2024
1 parent 630997f commit 2c75629
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,23 @@ describe('getAddPanelActionMenuItems', () => {
id: 'groupedAddPanelAction',
title: 'Custom group',
placementPriority: 0,
'data-test-subj': 'dashboardEditorMenu-groupedAddPanelActionGroup',
items: [
{
'data-test-subj': 'create-action-Action name 01',
icon: 'pencil',
id: 'TEST_ACTION_01',
name: 'Action name 01',
onClick: expect.any(Function),
toolTipContent: 'Action tooltip',
description: 'Action tooltip',
},
{
'data-test-subj': 'create-action-Action name',
icon: 'empty',
id: 'TEST_ACTION_02',
name: 'Action name',
onClick: expect.any(Function),
toolTipContent: 'Action tooltip',
description: 'Action tooltip',
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,15 @@ describe('mergeGroupedItemsProvider', () => {
icon: 'icon1',
name: 'Factory 1',
id: 'mockFactory',
toolTipContent: 'Factory 1 description',
description: 'Factory 1 description',
'data-test-subj': 'createNew-mockFactory',
onClick: expect.any(Function),
},
{
id: 'addPanelActionId',
},
],
'data-test-subj': 'dashboardEditorMenu-group1Group',
placementPriority: 10,
},
]);
Expand Down Expand Up @@ -120,12 +121,13 @@ describe('mergeGroupedItemsProvider', () => {
icon: 'icon1',
id: 'mockFactory',
name: 'Factory 1',
toolTipContent: 'Factory 1 description',
description: 'Factory 1 description',
'data-test-subj': 'createNew-mockFactory',
onClick: expect.any(Function),
},
],
placementPriority: 10,
'data-test-subj': 'dashboardEditorMenu-group1Group',
},
]);
});
Expand Down

0 comments on commit 2c75629

Please sign in to comment.