Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
750ec8f
Migrate annotation_description_list
rbrtj Jul 1, 2025
fa5fbc5
Migrate annotations_table
rbrtj Jul 2, 2025
fc03613
Migrate actions_section
rbrtj Jul 2, 2025
dd7a746
Migrate condition_expression
rbrtj Jul 2, 2025
fb3d59b
Migrate conditions_section
rbrtj Jul 2, 2025
b335938
Migrate rule_editor_flyout
rbrtj Jul 2, 2025
740db0b
Migrate scope_expression
rbrtj Jul 2, 2025
97637f2
Migrate scope_section
rbrtj Jul 2, 2025
ceaba37
Migrate detector_description_list
rbrtj Jul 2, 2025
489c183
Migrate add_to_filter_list_link
rbrtj Jul 2, 2025
59f8ce0
Migrate delete_rule_modal
rbrtj Jul 2, 2025
3dac2fb
Migrate edit_condition_link
rbrtj Jul 2, 2025
7677447
Migrate explorer_chart_info_tooltip
rbrtj Jul 2, 2025
af0ff1e
Migrate calendar_form
rbrtj Jul 2, 2025
0a88f56
Migrate events_table
rbrtj Jul 2, 2025
9447000
Migrate import_modal && move delete event test to events table
rbrtj Jul 2, 2025
d33f89b
Migrate calendars header
rbrtj Jul 2, 2025
35b6ec4
Migrate new_event_modal
rbrtj Jul 2, 2025
ccc059d
Migrate imported_events
rbrtj Jul 2, 2025
9dcbbb6
Migrate calendars list table
rbrtj Jul 2, 2025
e73d7f3
Migrate add_item_popover
rbrtj Jul 2, 2025
660419e
Migrate delete_filter_list_modal
rbrtj Jul 2, 2025
1b810bd
Migrate edit_description_popover
rbrtj Jul 2, 2025
86670a3
Migrate filters list edit header
rbrtj Jul 2, 2025
e037c5e
Migrate filters list edit toolbar
rbrtj Jul 2, 2025
7a42827
Migrate filters list list header
rbrtj Jul 2, 2025
d667d0a
Migrate filters list list table
rbrtj Jul 2, 2025
a1b40d5
Migrate anomaly_details
rbrtj Jul 2, 2025
303a005
Migrate entity_cell
rbrtj Jul 2, 2025
705ab6a
Migrate settings
rbrtj Jul 2, 2025
f95c3f4
Migrate timeseries_chart
rbrtj Jul 2, 2025
67ed223
Migrate use_create_analytics_form
rbrtj Jul 2, 2025
1b84c49
Cleanup rule_editor_flyout
rbrtj Jul 2, 2025
41c1cc1
Update snapshots
rbrtj Jul 2, 2025
6cdcf98
Merge branch 'main' into ml-migrate-enzyme-tests-to-rtl-v2
rbrtj Jul 4, 2025
fd544d3
Merge branch 'main' into ml-migrate-enzyme-tests-to-rtl-v2
rbrtj Jul 7, 2025
95b9635
Simplify type
rbrtj Jul 8, 2025
d890d55
Reusable createWithKibanaMock
rbrtj Jul 8, 2025
29d9eb0
[CI] Auto-commit changed files from 'node scripts/notice'
kibanamachine Jul 8, 2025
d8ad4ff
Extend createWithKibanaMock with coreMock
rbrtj Jul 8, 2025
e535563
createWithKibanaMock optional fn argument
rbrtj Jul 8, 2025
8c2d91e
[CI] Auto-commit changed files from 'node scripts/notice'
kibanamachine Jul 8, 2025
d77271e
Use testIds instead of getByRole
rbrtj Jul 8, 2025
82c857c
Imported_events remove redundant mock
rbrtj Jul 8, 2025
9442974
Revert re-usable helper
rbrtj Jul 8, 2025
2235148
revert tsconfig change
rbrtj Jul 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,24 @@ import mockAnnotations from '../annotations_table/__mocks__/mock_annotations.jso

import moment from 'moment-timezone';
import React from 'react';
import { shallowWithIntl } from '@kbn/test-jest-helpers';
import { renderWithI18n } from '@kbn/test-jest-helpers';

import { AnnotationDescriptionList } from '.';
import type { Annotation } from '../../../../../common/types/annotations';

describe('AnnotationDescriptionList', () => {
beforeEach(() => {
moment.tz.setDefault('UTC');
});

afterEach(() => {
moment.tz.setDefault('Browser');
});

test('Initialization with annotation.', () => {
// @ts-expect-error mock data is too loosely typed
const wrapper = shallowWithIntl(<AnnotationDescriptionList annotation={mockAnnotations[0]} />);
expect(wrapper).toMatchSnapshot();
const { container } = renderWithI18n(
<AnnotationDescriptionList annotation={mockAnnotations[0] as Annotation} />
);
expect(container.firstChild).toMatchSnapshot();
});
});
Loading