mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
* [TIP] Add Threat Intelligence plugin - create Threat Intelligence plugin and integrate with Security Solution plugin - setup jest unit tests, i18n, Cypress tests and Storybook - fetch Indicator of Compromise, and display in data-grid - add flyout components to show IOCs details (table and JSON) - add new threatIntelInt entry to kbn-doc-links package https://github.com/elastic/security-team/issues/4329 https://github.com/elastic/security-team/issues/4138 https://github.com/elastic/security-team/issues/4241 https://github.com/elastic/security-team/issues/4242 https://github.com/elastic/security-team/issues/4244 https://github.com/elastic/security-team/issues/4245 Co-authored-by: lgmys <lgmys@pm.me> Co-authored-by: Maxim Kholod <maxim.kholod@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
33 lines
1 KiB
TypeScript
33 lines
1 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { render, screen } from '@testing-library/react';
|
|
import React from 'react';
|
|
import { DefaultPageLayout, TITLE_TEST_ID } from './layout';
|
|
import '@testing-library/jest-dom';
|
|
|
|
describe('<Layout />', () => {
|
|
describe('when pageTitle is not specified', () => {
|
|
beforeEach(() => {
|
|
render(<DefaultPageLayout />);
|
|
});
|
|
|
|
it('should not render secondary heading', () => {
|
|
expect(screen.queryByTestId(`${TITLE_TEST_ID}`)).not.toBeInTheDocument();
|
|
});
|
|
});
|
|
|
|
describe('when pageTitle is passed, it should be rendered as secondary heading', () => {
|
|
beforeEach(() => {
|
|
render(<DefaultPageLayout pageTitle="Stranger Threats" />);
|
|
});
|
|
|
|
it('should render secondary heading', () => {
|
|
expect(screen.queryByText('Stranger Threats')).toBeInTheDocument();
|
|
});
|
|
});
|
|
});
|