Skip to content

Commit 0411eb7

Browse files
committed
Fix unit test
1 parent 504051c commit 0411eb7

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

  • x-pack/plugins/security_solution/public/common/components/navigation/breadcrumbs

x-pack/plugins/security_solution/public/common/components/navigation/breadcrumbs/index.test.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ import { APP_UI_ID } from '../../../../../common/constants';
2020
import { useDeepEqualSelector } from '../../../hooks/use_selector';
2121
import { useIsGroupedNavigationEnabled } from '../helpers';
2222
import { navTabs } from '../../../../app/home/home_navigations';
23+
import { getAppLinks } from '../../../links/app_links';
24+
import { allowedExperimentalValues } from '../../../../../common/experimental_features';
25+
import { StartPlugins } from '../../../../types';
26+
import { coreMock } from '@kbn/core/public/mocks';
27+
import { updateAppLinks } from '../../../links';
2328

2429
jest.mock('../../../hooks/use_selector');
2530

@@ -128,6 +133,23 @@ jest.mock('../../../lib/kibana/kibana_react', () => {
128133
});
129134

130135
describe('Navigation Breadcrumbs', () => {
136+
beforeAll(async () => {
137+
const appLinks = await getAppLinks(coreMock.createStart(), {} as StartPlugins);
138+
updateAppLinks(appLinks, {
139+
experimentalFeatures: allowedExperimentalValues,
140+
capabilities: {
141+
navLinks: {},
142+
management: {},
143+
catalogue: {},
144+
actions: { show: true, crud: true },
145+
siem: {
146+
show: true,
147+
crud: true,
148+
},
149+
},
150+
});
151+
});
152+
131153
const hostName = 'siem-kibana';
132154

133155
const ipv4 = '192.0.2.255';

0 commit comments

Comments
 (0)