From a9ecbf991ca6c875543233467b82011a72252fc0 Mon Sep 17 00:00:00 2001 From: Samuel Valdes Gutierrez Date: Thu, 7 Dec 2023 16:35:08 +0000 Subject: [PATCH] updating test snapshoots for button_content.tsx Signed-off-by: Samuel Valdes Gutierrez --- .../__snapshots__/skip_link.test.tsx.snap | 24 +- .../in_memory_table.test.tsx.snap | 12 +- .../button/__snapshots__/button.test.tsx.snap | 101 ++--- .../button_content.test.tsx.snap | 25 +- .../__snapshots__/button_empty.test.tsx.snap | 97 ++--- .../__snapshots__/button_group.test.tsx.snap | 384 +++++------------- .../card/__snapshots__/card.test.tsx.snap | 8 +- .../__snapshots__/card_select.test.tsx.snap | 20 +- .../__snapshots__/control_bar.test.tsx.snap | 56 +-- .../__snapshots__/data_grid.test.tsx.snap | 60 +-- .../__snapshots__/filter_button.test.tsx.snap | 40 +- .../__snapshots__/header_link.test.tsx.snap | 12 +- .../__snapshots__/header_links.test.tsx.snap | 4 +- .../header_section_item_button.test.tsx.snap | 24 +- .../markdown_editor.test.tsx.snap | 20 +- .../__snapshots__/confirm_modal.test.tsx.snap | 16 +- .../notification_event.test.tsx.snap | 8 +- .../__snapshots__/pagination.test.tsx.snap | 4 +- .../pagination_button.test.tsx.snap | 4 +- .../__snapshots__/side_nav.test.tsx.snap | 4 +- .../table_sort_mobile.test.tsx.snap | 4 +- .../table_pagination.test.tsx.snap | 44 +- 22 files changed, 242 insertions(+), 729 deletions(-) diff --git a/src/components/accessibility/__snapshots__/skip_link.test.tsx.snap b/src/components/accessibility/__snapshots__/skip_link.test.tsx.snap index a06b117221..4deb267d9a 100644 --- a/src/components/accessibility/__snapshots__/skip_link.test.tsx.snap +++ b/src/components/accessibility/__snapshots__/skip_link.test.tsx.snap @@ -11,9 +11,7 @@ exports[`OuiSkipLink is rendered 1`] = ` - + @@ -32,9 +30,7 @@ exports[`OuiSkipLink props onClick is rendered 1`] = ` - + @@ -51,9 +47,7 @@ exports[`OuiSkipLink props position absolute is rendered 1`] = ` - + @@ -71,9 +65,7 @@ exports[`OuiSkipLink props position fixed is rendered 1`] = ` - + @@ -90,9 +82,7 @@ exports[`OuiSkipLink props position static is rendered 1`] = ` - + @@ -110,9 +100,7 @@ exports[`OuiSkipLink props tabIndex is rendered 1`] = ` - + diff --git a/src/components/basic_table/__snapshots__/in_memory_table.test.tsx.snap b/src/components/basic_table/__snapshots__/in_memory_table.test.tsx.snap index 6acb2294a2..417a6fa08e 100644 --- a/src/components/basic_table/__snapshots__/in_memory_table.test.tsx.snap +++ b/src/components/basic_table/__snapshots__/in_memory_table.test.tsx.snap @@ -418,9 +418,7 @@ exports[`OuiInMemoryTable behavior pagination 1`] = ` - + - + @@ -677,9 +673,7 @@ exports[`OuiInMemoryTable behavior pagination 1`] = ` - + diff --git a/src/components/button/__snapshots__/button.test.tsx.snap b/src/components/button/__snapshots__/button.test.tsx.snap index d783a4880e..6eea10a277 100644 --- a/src/components/button/__snapshots__/button.test.tsx.snap +++ b/src/components/button/__snapshots__/button.test.tsx.snap @@ -10,9 +10,7 @@ exports[`OuiButton is rendered 1`] = ` - + @@ -30,9 +28,7 @@ exports[`OuiButton props color accent is rendered 1`] = ` - + @@ -48,9 +44,7 @@ exports[`OuiButton props color danger is rendered 1`] = ` - + @@ -66,9 +60,7 @@ exports[`OuiButton props color ghost is rendered 1`] = ` - + @@ -84,9 +76,7 @@ exports[`OuiButton props color primary is rendered 1`] = ` - + @@ -102,9 +92,7 @@ exports[`OuiButton props color secondary is rendered 1`] = ` - + @@ -120,9 +108,7 @@ exports[`OuiButton props color success is rendered 1`] = ` - + @@ -138,9 +124,7 @@ exports[`OuiButton props color text is rendered 1`] = ` - + @@ -156,9 +140,7 @@ exports[`OuiButton props color warning is rendered 1`] = ` - + @@ -176,9 +158,7 @@ exports[`OuiButton props contentProps is rendered 1`] = ` class="ouiButtonContent ouiButton__content testClass1 testClass2" data-test-subj="test subject string" > - + @@ -196,9 +176,7 @@ exports[`OuiButton props fill is rendered 1`] = ` - + @@ -214,9 +192,7 @@ exports[`OuiButton props fullWidth is rendered 1`] = ` - + @@ -234,9 +210,7 @@ exports[`OuiButton props href secures the rel attribute when the target is _blan - + @@ -252,9 +226,7 @@ exports[`OuiButton props iconSide left is rendered 1`] = ` - + - + - + - + @@ -348,9 +314,7 @@ exports[`OuiButton props isDisabled renders a button even when href is defined 1 - + @@ -367,9 +331,7 @@ exports[`OuiButton props isDisabled renders if passed as disabled 1`] = ` - + @@ -386,9 +348,7 @@ exports[`OuiButton props isLoading is rendered 1`] = ` - + @@ -409,9 +369,7 @@ exports[`OuiButton props isSelected is rendered as false 1`] = ` - + @@ -428,9 +386,7 @@ exports[`OuiButton props isSelected is rendered as true 1`] = ` - + @@ -447,9 +403,7 @@ exports[`OuiButton props minWidth is rendered 1`] = ` - + @@ -465,9 +419,7 @@ exports[`OuiButton props size m is rendered 1`] = ` - + @@ -483,9 +435,7 @@ exports[`OuiButton props size s is rendered 1`] = ` - + @@ -503,7 +453,6 @@ exports[`OuiButton props textProps is rendered 1`] = ` > - + `; @@ -17,9 +15,7 @@ exports[`OuiButtonContent props children is rendered 1`] = ` - + Content @@ -30,9 +26,7 @@ exports[`OuiButtonContent props iconSide is rendered 1`] = ` - + - + - + @@ -79,9 +69,7 @@ exports[`OuiButtonContent props isLoading replaces iconType with spinner 1`] = ` - + @@ -96,7 +84,6 @@ exports[`OuiButtonContent props textProps is rendered 1`] = ` > - + @@ -30,9 +28,7 @@ exports[`OuiButtonEmpty props color danger is rendered 1`] = ` - + @@ -48,9 +44,7 @@ exports[`OuiButtonEmpty props color ghost is rendered 1`] = ` - + @@ -66,9 +60,7 @@ exports[`OuiButtonEmpty props color primary is rendered 1`] = ` - + @@ -84,9 +76,7 @@ exports[`OuiButtonEmpty props color success is rendered 1`] = ` - + @@ -102,9 +92,7 @@ exports[`OuiButtonEmpty props color text is rendered 1`] = ` - + @@ -120,9 +108,7 @@ exports[`OuiButtonEmpty props color warning is rendered 1`] = ` - + @@ -140,9 +126,7 @@ exports[`OuiButtonEmpty props contentProps is rendered 1`] = ` class="ouiButtonContent ouiButtonEmpty__content testClass1 testClass2" data-test-subj="test subject string" > - + @@ -160,9 +144,7 @@ exports[`OuiButtonEmpty props flush both is rendered 1`] = ` - + @@ -178,9 +160,7 @@ exports[`OuiButtonEmpty props flush left is rendered 1`] = ` - + @@ -196,9 +176,7 @@ exports[`OuiButtonEmpty props flush right is rendered 1`] = ` - + @@ -216,9 +194,7 @@ exports[`OuiButtonEmpty props href secures the rel attribute when the target is - + @@ -234,9 +210,7 @@ exports[`OuiButtonEmpty props iconSide left is rendered 1`] = ` - + - + - + - + @@ -330,9 +298,7 @@ exports[`OuiButtonEmpty props isDisabled renders a button even when href is defi - + @@ -349,9 +315,7 @@ exports[`OuiButtonEmpty props isDisabled renders if passed simply as disabled 1` - + @@ -368,9 +332,7 @@ exports[`OuiButtonEmpty props isLoading is rendered 1`] = ` - + @@ -391,9 +353,7 @@ exports[`OuiButtonEmpty props isSelected is rendered as false 1`] = ` - + @@ -410,9 +370,7 @@ exports[`OuiButtonEmpty props isSelected is rendered as true 1`] = ` - + @@ -428,9 +386,7 @@ exports[`OuiButtonEmpty props size l is rendered 1`] = ` - + @@ -446,9 +402,7 @@ exports[`OuiButtonEmpty props size s is rendered 1`] = ` - + @@ -464,9 +418,7 @@ exports[`OuiButtonEmpty props size xs is rendered 1`] = ` - + @@ -484,7 +436,6 @@ exports[`OuiButtonEmpty props textProps is rendered 1`] = ` > - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -788,9 +786,7 @@ exports[`OuiCard props selectable 1`] = ` - + diff --git a/src/components/card/__snapshots__/card_select.test.tsx.snap b/src/components/card/__snapshots__/card_select.test.tsx.snap index d1199b1a54..726ad222bd 100644 --- a/src/components/card/__snapshots__/card_select.test.tsx.snap +++ b/src/components/card/__snapshots__/card_select.test.tsx.snap @@ -12,9 +12,7 @@ exports[`OuiCardSelect is rendered 1`] = ` - + @@ -34,9 +32,7 @@ exports[`OuiCardSelect props can override color 1`] = ` - + @@ -56,9 +52,7 @@ exports[`OuiCardSelect props can override text 1`] = ` - + @@ -79,9 +73,7 @@ exports[`OuiCardSelect props isDisabled 1`] = ` - + @@ -101,9 +93,7 @@ exports[`OuiCardSelect props isSelected 1`] = ` - + - + @@ -203,9 +201,7 @@ exports[`OuiControlBar props leftOffset is rendered 1`] = ` - + @@ -366,9 +362,7 @@ exports[`OuiControlBar props leftOffset is rendered 1`] = ` - + @@ -549,9 +543,7 @@ exports[`OuiControlBar props maxHeight is rendered 1`] = ` - + @@ -712,9 +704,7 @@ exports[`OuiControlBar props maxHeight is rendered 1`] = ` - + @@ -894,9 +884,7 @@ exports[`OuiControlBar props mobile is rendered 1`] = ` - + @@ -1057,9 +1045,7 @@ exports[`OuiControlBar props mobile is rendered 1`] = ` - + @@ -1303,9 +1289,7 @@ exports[`OuiControlBar props position is rendered 1`] = ` - + @@ -1470,9 +1454,7 @@ exports[`OuiControlBar props rightOffset is rendered 1`] = ` - + @@ -1633,9 +1615,7 @@ exports[`OuiControlBar props rightOffset is rendered 1`] = ` - + @@ -1815,9 +1795,7 @@ exports[`OuiControlBar props showContent is rendered 1`] = ` - + @@ -1983,9 +1961,7 @@ exports[`OuiControlBar props showContent is rendered 1`] = ` - + @@ -2170,9 +2146,7 @@ exports[`OuiControlBar props size is rendered 1`] = ` - + @@ -2333,9 +2307,7 @@ exports[`OuiControlBar props size is rendered 1`] = ` - + diff --git a/src/components/datagrid/__snapshots__/data_grid.test.tsx.snap b/src/components/datagrid/__snapshots__/data_grid.test.tsx.snap index 5f4cc9eb1a..40d25d6717 100644 --- a/src/components/datagrid/__snapshots__/data_grid.test.tsx.snap +++ b/src/components/datagrid/__snapshots__/data_grid.test.tsx.snap @@ -21,9 +21,7 @@ exports[`OuiDataGrid pagination renders 1`] = ` - + - + @@ -106,9 +102,7 @@ exports[`OuiDataGrid pagination renders 1`] = ` - + @@ -968,9 +962,7 @@ Array [ - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -32,9 +30,7 @@ exports[`OuiFilterButton props grow can be turned off 1`] = ` - + @@ -54,9 +50,7 @@ exports[`OuiFilterButton props iconType and iconSide is rendered 1`] = ` - + - + @@ -105,9 +97,7 @@ exports[`OuiFilterButton props isSelected is rendered 1`] = ` - + @@ -127,9 +117,7 @@ exports[`OuiFilterButton props numActiveFilters and hasActiveFilters is rendered - + @@ -155,9 +143,7 @@ exports[`OuiFilterButton props numFilters is rendered 1`] = ` - + @@ -183,9 +169,7 @@ exports[`OuiFilterButton props type is rendered 1`] = ` - + @@ -205,9 +189,7 @@ exports[`OuiFilterButton props withNext is rendered 1`] = ` - + @@ -229,9 +211,7 @@ exports[`OuiFilterButton renders zero properly 1`] = ` - + diff --git a/src/components/header/header_links/__snapshots__/header_link.test.tsx.snap b/src/components/header/header_links/__snapshots__/header_link.test.tsx.snap index 36fa776cef..4a20bbdb7a 100644 --- a/src/components/header/header_links/__snapshots__/header_link.test.tsx.snap +++ b/src/components/header/header_links/__snapshots__/header_link.test.tsx.snap @@ -8,9 +8,7 @@ exports[`OuiHeaderLink can render as specific color 1`] = ` - + @@ -28,9 +26,7 @@ exports[`OuiHeaderLink is rendered 1`] = ` - + @@ -46,9 +42,7 @@ exports[`OuiHeaderLink is rendered as active 1`] = ` - + diff --git a/src/components/header/header_links/__snapshots__/header_links.test.tsx.snap b/src/components/header/header_links/__snapshots__/header_links.test.tsx.snap index b38cece33e..1cc3062112 100644 --- a/src/components/header/header_links/__snapshots__/header_links.test.tsx.snap +++ b/src/components/header/header_links/__snapshots__/header_links.test.tsx.snap @@ -86,9 +86,7 @@ exports[`OuiHeaderLinks popover props is rendered 1`] = ` - + diff --git a/src/components/header/header_section/__snapshots__/header_section_item_button.test.tsx.snap b/src/components/header/header_section/__snapshots__/header_section_item_button.test.tsx.snap index 0f78888f20..1df04f72e9 100644 --- a/src/components/header/header_section/__snapshots__/header_section_item_button.test.tsx.snap +++ b/src/components/header/header_section/__snapshots__/header_section_item_button.test.tsx.snap @@ -10,9 +10,7 @@ exports[`OuiHeaderSectionItemButton is rendered 1`] = ` - + @@ -33,9 +31,7 @@ exports[`OuiHeaderSectionItemButton renders a link 1`] = ` - + @@ -55,9 +51,7 @@ exports[`OuiHeaderSectionItemButton renders children 1`] = ` - + @@ -81,9 +75,7 @@ exports[`OuiHeaderSectionItemButton renders notification as a badge 1`] = ` - + @@ -108,9 +100,7 @@ exports[`OuiHeaderSectionItemButton renders notification as a dot 1`] = ` - + @@ -135,9 +125,7 @@ exports[`OuiHeaderSectionItemButton renders notification color 1`] = ` - + diff --git a/src/components/markdown_editor/__snapshots__/markdown_editor.test.tsx.snap b/src/components/markdown_editor/__snapshots__/markdown_editor.test.tsx.snap index f73c2ca100..9209798bad 100644 --- a/src/components/markdown_editor/__snapshots__/markdown_editor.test.tsx.snap +++ b/src/components/markdown_editor/__snapshots__/markdown_editor.test.tsx.snap @@ -172,9 +172,7 @@ exports[`OuiMarkdownEditor is rendered 1`] = ` - + - + - + - + - + - + @@ -95,9 +93,7 @@ Array [ - + @@ -180,9 +176,7 @@ Array [ - + @@ -198,9 +192,7 @@ Array [ - + diff --git a/src/components/notification/__snapshots__/notification_event.test.tsx.snap b/src/components/notification/__snapshots__/notification_event.test.tsx.snap index 9aa7efd2da..497ef7ba10 100644 --- a/src/components/notification/__snapshots__/notification_event.test.tsx.snap +++ b/src/components/notification/__snapshots__/notification_event.test.tsx.snap @@ -664,9 +664,7 @@ exports[`OuiNotificationEvent props primaryAction is rendered 1`] = ` - + @@ -750,9 +748,7 @@ exports[`OuiNotificationEvent props primaryActionProps is rendered 1`] = ` - + - + diff --git a/src/components/pagination/__snapshots__/pagination_button.test.tsx.snap b/src/components/pagination/__snapshots__/pagination_button.test.tsx.snap index 621deb10a8..ee48d3a0de 100644 --- a/src/components/pagination/__snapshots__/pagination_button.test.tsx.snap +++ b/src/components/pagination/__snapshots__/pagination_button.test.tsx.snap @@ -10,9 +10,7 @@ exports[`OuiPaginationButton is rendered 1`] = ` - + diff --git a/src/components/side_nav/__snapshots__/side_nav.test.tsx.snap b/src/components/side_nav/__snapshots__/side_nav.test.tsx.snap index f712c0e019..ef8223c9ee 100644 --- a/src/components/side_nav/__snapshots__/side_nav.test.tsx.snap +++ b/src/components/side_nav/__snapshots__/side_nav.test.tsx.snap @@ -532,9 +532,7 @@ exports[`OuiSideNav props mobileBreakpoints can be adjusted is rendered 1`] = ` - + - + - + - + @@ -102,9 +98,7 @@ exports[`OuiTablePagination is rendered 1`] = ` - + @@ -125,9 +119,7 @@ exports[`OuiTablePagination is rendered 1`] = ` - + @@ -148,9 +140,7 @@ exports[`OuiTablePagination is rendered 1`] = ` - + @@ -171,9 +161,7 @@ exports[`OuiTablePagination is rendered 1`] = ` - + @@ -245,9 +233,7 @@ exports[`OuiTablePagination is rendered when hiding the per page options 1`] = ` - + @@ -270,9 +256,7 @@ exports[`OuiTablePagination is rendered when hiding the per page options 1`] = ` - + @@ -293,9 +277,7 @@ exports[`OuiTablePagination is rendered when hiding the per page options 1`] = ` - + @@ -316,9 +298,7 @@ exports[`OuiTablePagination is rendered when hiding the per page options 1`] = ` - + @@ -339,9 +319,7 @@ exports[`OuiTablePagination is rendered when hiding the per page options 1`] = ` - +