From da850e4dfb1dab39ffc9c6f00045d8de53d58f5e Mon Sep 17 00:00:00 2001 From: Kshitij Kotasthane Date: Fri, 2 Oct 2020 13:01:07 -0400 Subject: [PATCH] Changed EuiIcon mock to render as span instead of div (#4099) --- CHANGELOG.md | 1 + .../__snapshots__/accordion.test.tsx.snap | 22 +-- .../badge/__snapshots__/badge.test.tsx.snap | 6 +- .../collapsed_item_actions.test.tsx.snap | 2 +- .../in_memory_table.test.tsx.snap | 6 +- .../__snapshots__/breadcrumbs.test.tsx.snap | 12 +- .../button/__snapshots__/button.test.tsx.snap | 6 +- .../button_content.test.tsx.snap | 4 +- .../__snapshots__/button_empty.test.tsx.snap | 6 +- .../__snapshots__/button_icon.test.tsx.snap | 2 +- .../card/__snapshots__/card.test.tsx.snap | 2 +- .../__snapshots__/card_select.test.tsx.snap | 2 +- .../__snapshots__/code_block.test.tsx.snap | 4 +- .../collapsible_nav.test.tsx.snap | 16 +- .../collapsible_nav_group.test.tsx.snap | 8 +- .../__snapshots__/color_picker.test.tsx.snap | 48 +++--- .../color_palette_picker.test.tsx.snap | 14 +- .../__snapshots__/combo_box.test.tsx.snap | 4 +- .../__snapshots__/comment.test.tsx.snap | 10 +- .../__snapshots__/comment_list.test.tsx.snap | 2 +- .../comment_timeline.test.tsx.snap | 4 +- .../__snapshots__/context_menu.test.tsx.snap | 14 +- .../context_menu_item.test.tsx.snap | 2 +- .../context_menu_panel.test.tsx.snap | 16 +- .../__snapshots__/control_bar.test.tsx.snap | 28 ++-- .../__snapshots__/data_grid.test.tsx.snap | 118 +++++++------- .../__snapshots__/date_picker.test.tsx.snap | 2 +- .../date_picker_range.test.tsx.snap | 2 +- .../__snapshots__/empty_prompt.test.tsx.snap | 4 +- .../__snapshots__/expression.test.tsx.snap | 4 +- .../__snapshots__/facet_button.test.tsx.snap | 2 +- .../__snapshots__/filter_button.test.tsx.snap | 2 +- .../filter_select_item.test.tsx.snap | 2 +- .../flyout/__snapshots__/flyout.test.tsx.snap | 20 +-- .../field_password.test.tsx.snap | 28 ++-- .../__snapshots__/file_picker.test.tsx.snap | 2 +- .../form_control_layout.test.tsx.snap | 10 +- ..._control_layout_clear_button.test.tsx.snap | 2 +- ...m_control_layout_custom_icon.test.tsx.snap | 4 +- ...orm_control_layout_delimited.test.tsx.snap | 2 +- .../__snapshots__/super_select.test.tsx.snap | 30 ++-- .../super_select_control.test.tsx.snap | 16 +- .../switch/__snapshots__/switch.test.tsx.snap | 8 +- .../__snapshots__/header_logo.test.tsx.snap | 8 +- .../__snapshots__/header_links.test.tsx.snap | 2 +- .../header_section_item_button.test.tsx.snap | 2 +- .../health/__snapshots__/health.test.tsx.snap | 2 +- src/components/icon/icon.testenv.tsx | 2 +- .../image/__snapshots__/image.test.tsx.snap | 2 +- .../link/__snapshots__/link.test.tsx.snap | 2 +- .../__snapshots__/list_group.test.tsx.snap | 8 +- .../list_group_item.test.tsx.snap | 6 +- .../pinnable_list_group.test.tsx.snap | 24 +-- .../loading_kibana.test.tsx.snap | 8 +- .../markdown_editor.test.tsx.snap | 22 +-- .../__snapshots__/confirm_modal.test.tsx.snap | 4 +- .../modal/__snapshots__/modal.test.tsx.snap | 2 +- .../__snapshots__/nav_drawer.test.tsx.snap | 44 +++--- .../__snapshots__/pagination.test.tsx.snap | 4 +- .../selectable_list_item.test.tsx.snap | 20 +-- .../selectable_search.test.tsx.snap | 6 +- ...selectable_template_sitewide.test.tsx.snap | 10 +- .../__snapshots__/side_nav.test.tsx.snap | 20 +-- .../steps/__snapshots__/step.test.tsx.snap | 6 +- .../step_horizontal.test.tsx.snap | 8 +- .../__snapshots__/step_number.test.tsx.snap | 6 +- .../steps_horizontal.test.tsx.snap | 2 +- .../__snapshots__/suggest_input.test.tsx.snap | 2 +- .../__snapshots__/suggest_item.test.tsx.snap | 6 +- .../table_sort_mobile.test.tsx.snap | 2 +- .../table_sort_mobile_item.test.tsx.snap | 2 +- .../table_pagination.test.tsx.snap | 10 +- .../global_toast_list.test.tsx.snap | 16 +- .../toast/__snapshots__/toast.test.tsx.snap | 2 +- .../token/__snapshots__/token.test.tsx.snap | 146 +++++++++--------- .../__snapshots__/icon_tip.test.tsx.snap | 8 +- .../tour_step_indicator.test.tsx.snap | 6 +- .../__snapshots__/tree_view.test.tsx.snap | 8 +- 78 files changed, 464 insertions(+), 463 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80b8d345cd3..c48ad19ab97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [`master`](https://github.com/elastic/eui/tree/master) - Added `max-width: 100%` to `EuiKeyPadMenu` to allow it to shrink when its container is smaller than its fixed width ([ #4092](https://github.com/elastic/eui/pull/4092)) +- Changed `EuiIcon` test mock to render as `span` instead of `div` ([#4099](https://github.com/elastic/eui/pull/4099)) **Bug fixes** diff --git a/src/components/accordion/__snapshots__/accordion.test.tsx.snap b/src/components/accordion/__snapshots__/accordion.test.tsx.snap index d44de7e8d9d..020d001c37e 100644 --- a/src/components/accordion/__snapshots__/accordion.test.tsx.snap +++ b/src/components/accordion/__snapshots__/accordion.test.tsx.snap @@ -31,7 +31,7 @@ exports[`EuiAccordion behavior closes when clicked twice 1`] = ` size="m" type="arrowRight" > -
-
-
@@ -217,7 +217,7 @@ exports[`EuiAccordion props arrowDisplay right is rendered 1`] = ` -
@@ -261,7 +261,7 @@ exports[`EuiAccordion props buttonContent is rendered 1`] = ` -
@@ -305,7 +305,7 @@ exports[`EuiAccordion props buttonContentClassName is rendered 1`] = ` -
@@ -345,7 +345,7 @@ exports[`EuiAccordion props extraAction is rendered 1`] = ` -
@@ -392,7 +392,7 @@ exports[`EuiAccordion props forceState is rendered 1`] = ` -
@@ -436,7 +436,7 @@ exports[`EuiAccordion props initialIsOpen is rendered 1`] = ` -
@@ -480,7 +480,7 @@ exports[`EuiAccordion props isLoading is rendered 1`] = ` -
@@ -531,7 +531,7 @@ exports[`EuiAccordion props isLoadingMessage is rendered 1`] = ` -
diff --git a/src/components/badge/__snapshots__/badge.test.tsx.snap b/src/components/badge/__snapshots__/badge.test.tsx.snap index 4c326db3643..bd6e2b78737 100644 --- a/src/components/badge/__snapshots__/badge.test.tsx.snap +++ b/src/components/badge/__snapshots__/badge.test.tsx.snap @@ -307,7 +307,7 @@ exports[`EuiBadge props iconSide left is rendered 1`] = ` > Content -
@@ -328,7 +328,7 @@ exports[`EuiBadge props iconSide right is rendered 1`] = ` > Content -
@@ -349,7 +349,7 @@ exports[`EuiBadge props iconType is rendered 1`] = ` > Content -
diff --git a/src/components/basic_table/__snapshots__/collapsed_item_actions.test.tsx.snap b/src/components/basic_table/__snapshots__/collapsed_item_actions.test.tsx.snap index 775331b52a1..0ecfdaf9f61 100644 --- a/src/components/basic_table/__snapshots__/collapsed_item_actions.test.tsx.snap +++ b/src/components/basic_table/__snapshots__/collapsed_item_actions.test.tsx.snap @@ -17,7 +17,7 @@ exports[`CollapsedItemActions render 1`] = ` data-test-subj="euiCollapsedItemActionsButton" type="button" > -