From 3cc72c2237cfbc99d2d7b583add00d95158eef17 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 22 Aug 2022 11:57:06 -0700 Subject: [PATCH] Refactored dependency used by test mock. Adjusted OSD version used by test workflows. (#318) (#321) * Adjusted version of OSD used by unit and cypress tests to align with OSD branching strategy. Signed-off-by: AWSHurneyt * Refactored the path used to access a dependency, that's used by some unit tests, following migration from EUI to OUI. Updated snapshots and a unit test. Signed-off-by: AWSHurneyt Signed-off-by: AWSHurneyt (cherry picked from commit 9d3813b8da8d807bba8e2261dd204b0d960ac153) Co-authored-by: AWSHurneyt --- .../FormikFieldPassword.test.js.snap | 13 +- .../__snapshots__/FormikSelect.test.js.snap | 13 +- .../__snapshots__/FormikSwitch.test.js.snap | 26 +- .../__snapshots__/IconToolTip.test.js.snap | 13 +- .../ClusterMetricsMonitor.test.js.snap | 27 +- .../MonitorDefinition.test.js.snap | 13 +- .../MonitorDefinitionCard.test.js.snap | 31 +- .../MonitorExpressions.test.js.snap | 65 +- .../__snapshots__/ForExpression.test.js.snap | 26 +- .../WhereExpression.test.js.snap | 13 +- .../MonitorTimeField.test.js.snap | 13 +- .../QueryPerformance.test.js.snap | 14 +- .../__snapshots__/Frequencies.test.js.snap | 112 +--- .../AnomalyDetector.test.js.snap | 22 +- .../MonitorIndex/MonitorIndex.test.js | 2 +- .../__snapshots__/MonitorIndex.test.js.snap | 22 +- .../Action/__snapshots__/Action.test.js.snap | 162 ++--- .../__snapshots__/Message.test.js.snap | 14 +- .../NotificationsCallOut.test.js.snap | 36 +- .../DashboardControls.test.js.snap | 65 +- .../__snapshots__/Dashboard.test.js.snap | 501 ++------------ .../DestinationsActions.test.js.snap | 13 +- .../DestinationsControls.test.js.snap | 52 +- .../ManageEmailGroups.test.js.snap | 198 +----- .../__snapshots__/ManageSenders.test.js.snap | 198 +----- .../DestinationsList.test.js.snap | 631 +++--------------- .../__snapshots__/MonitorActions.test.js.snap | 13 +- test/setup.jest.js | 10 +- 28 files changed, 388 insertions(+), 1930 deletions(-) diff --git a/public/components/FormControls/FormikFieldPassword/__snapshots__/FormikFieldPassword.test.js.snap b/public/components/FormControls/FormikFieldPassword/__snapshots__/FormikFieldPassword.test.js.snap index 12189ff9a..c523339ce 100644 --- a/public/components/FormControls/FormikFieldPassword/__snapshots__/FormikFieldPassword.test.js.snap +++ b/public/components/FormControls/FormikFieldPassword/__snapshots__/FormikFieldPassword.test.js.snap @@ -18,16 +18,9 @@ exports[`FormikFieldPassword renders 1`] = ` - +
+ EuiIconMock +
diff --git a/public/components/FormControls/FormikSelect/__snapshots__/FormikSelect.test.js.snap b/public/components/FormControls/FormikSelect/__snapshots__/FormikSelect.test.js.snap index 88122722c..64e27c890 100644 --- a/public/components/FormControls/FormikSelect/__snapshots__/FormikSelect.test.js.snap +++ b/public/components/FormControls/FormikSelect/__snapshots__/FormikSelect.test.js.snap @@ -24,16 +24,9 @@ exports[`FormikSelect renders 1`] = ` - +
+ EuiIconMock +
diff --git a/public/components/FormControls/FormikSwitch/__snapshots__/FormikSwitch.test.js.snap b/public/components/FormControls/FormikSwitch/__snapshots__/FormikSwitch.test.js.snap index 63809ed77..147f87549 100644 --- a/public/components/FormControls/FormikSwitch/__snapshots__/FormikSwitch.test.js.snap +++ b/public/components/FormControls/FormikSwitch/__snapshots__/FormikSwitch.test.js.snap @@ -22,26 +22,12 @@ exports[`FormikSwitch renders 1`] = ` - - +
+ EuiIconMock +
+
+ EuiIconMock +
diff --git a/public/components/IconToolTip/__snapshots__/IconToolTip.test.js.snap b/public/components/IconToolTip/__snapshots__/IconToolTip.test.js.snap index 848cbb672..26f77365e 100644 --- a/public/components/IconToolTip/__snapshots__/IconToolTip.test.js.snap +++ b/public/components/IconToolTip/__snapshots__/IconToolTip.test.js.snap @@ -4,15 +4,8 @@ exports[`IconToolTip renders 1`] = ` - +
+ EuiIconMock +
`; diff --git a/public/pages/CreateMonitor/components/ClusterMetricsMonitor/__snapshots__/ClusterMetricsMonitor.test.js.snap b/public/pages/CreateMonitor/components/ClusterMetricsMonitor/__snapshots__/ClusterMetricsMonitor.test.js.snap index bd2b2cee9..016ead360 100644 --- a/public/pages/CreateMonitor/components/ClusterMetricsMonitor/__snapshots__/ClusterMetricsMonitor.test.js.snap +++ b/public/pages/CreateMonitor/components/ClusterMetricsMonitor/__snapshots__/ClusterMetricsMonitor.test.js.snap @@ -39,17 +39,9 @@ exports[`ClusterMetricsMonitor renders 1`] = ` target="_blank" > Learn more - +
+ EuiIconMock +
@@ -114,16 +106,9 @@ exports[`ClusterMetricsMonitor renders 1`] = ` data-test-subj="comboBoxToggleListButton" type="button" > - +
+ EuiIconMock +
diff --git a/public/pages/CreateMonitor/components/MonitorDefinition/__snapshots__/MonitorDefinition.test.js.snap b/public/pages/CreateMonitor/components/MonitorDefinition/__snapshots__/MonitorDefinition.test.js.snap index 4ae08de2a..c30d92122 100644 --- a/public/pages/CreateMonitor/components/MonitorDefinition/__snapshots__/MonitorDefinition.test.js.snap +++ b/public/pages/CreateMonitor/components/MonitorDefinition/__snapshots__/MonitorDefinition.test.js.snap @@ -48,16 +48,9 @@ exports[`MonitorDefinition renders 1`] = ` - +
+ EuiIconMock +
diff --git a/public/pages/CreateMonitor/components/MonitorDefinitionCard/__snapshots__/MonitorDefinitionCard.test.js.snap b/public/pages/CreateMonitor/components/MonitorDefinitionCard/__snapshots__/MonitorDefinitionCard.test.js.snap index c533210b0..9ae797cde 100644 --- a/public/pages/CreateMonitor/components/MonitorDefinitionCard/__snapshots__/MonitorDefinitionCard.test.js.snap +++ b/public/pages/CreateMonitor/components/MonitorDefinitionCard/__snapshots__/MonitorDefinitionCard.test.js.snap @@ -24,17 +24,9 @@ exports[`MonitorDefinitionCard renders without AD plugin 1`] = ` target="_blank" > Learn more - +
+ EuiIconMock +
@@ -169,20 +161,9 @@ exports[`MonitorDefinitionCard renders without AD plugin 2`] = ` target="_blank" > Learn more - - - +
+ EuiIconMock +
diff --git a/public/pages/CreateMonitor/components/MonitorExpressions/__snapshots__/MonitorExpressions.test.js.snap b/public/pages/CreateMonitor/components/MonitorExpressions/__snapshots__/MonitorExpressions.test.js.snap index d3a018400..f7f943fab 100644 --- a/public/pages/CreateMonitor/components/MonitorExpressions/__snapshots__/MonitorExpressions.test.js.snap +++ b/public/pages/CreateMonitor/components/MonitorExpressions/__snapshots__/MonitorExpressions.test.js.snap @@ -17,16 +17,9 @@ exports[`MonitorExpressions renders 1`] = ` - +
+ EuiIconMock +
- +
+ EuiIconMock +
- +
+ EuiIconMock +
@@ -219,16 +198,9 @@ exports[`MonitorExpressions renders 1`] = ` - +
+ EuiIconMock +
- +
+ EuiIconMock +
- +
+ EuiIconMock +
- +
+ EuiIconMock +
diff --git a/public/pages/CreateMonitor/components/MonitorExpressions/expressions/__snapshots__/WhereExpression.test.js.snap b/public/pages/CreateMonitor/components/MonitorExpressions/expressions/__snapshots__/WhereExpression.test.js.snap index b42f0e366..f437f13da 100644 --- a/public/pages/CreateMonitor/components/MonitorExpressions/expressions/__snapshots__/WhereExpression.test.js.snap +++ b/public/pages/CreateMonitor/components/MonitorExpressions/expressions/__snapshots__/WhereExpression.test.js.snap @@ -14,16 +14,9 @@ exports[`WhereExpression renders 1`] = ` - +
+ EuiIconMock +
- +
+ EuiIconMock +
diff --git a/public/pages/CreateMonitor/components/QueryPerformance/__snapshots__/QueryPerformance.test.js.snap b/public/pages/CreateMonitor/components/QueryPerformance/__snapshots__/QueryPerformance.test.js.snap index 05d98461c..fa380a6b7 100644 --- a/public/pages/CreateMonitor/components/QueryPerformance/__snapshots__/QueryPerformance.test.js.snap +++ b/public/pages/CreateMonitor/components/QueryPerformance/__snapshots__/QueryPerformance.test.js.snap @@ -46,17 +46,9 @@ exports[`QueryPerformance renders 1`] = ` target="_blank" > Learn more - +
+ EuiIconMock +
diff --git a/public/pages/CreateMonitor/components/Schedule/Frequencies/__snapshots__/Frequencies.test.js.snap b/public/pages/CreateMonitor/components/Schedule/Frequencies/__snapshots__/Frequencies.test.js.snap index 779b81ba0..26847f1c2 100644 --- a/public/pages/CreateMonitor/components/Schedule/Frequencies/__snapshots__/Frequencies.test.js.snap +++ b/public/pages/CreateMonitor/components/Schedule/Frequencies/__snapshots__/Frequencies.test.js.snap @@ -51,17 +51,9 @@ exports[`Frequencies renders CustomCron 1`] = ` target="_blank" > cron expressions - +
+ EuiIconMock +
@@ -136,21 +128,9 @@ exports[`Frequencies renders CustomCron 1`] = ` data-test-subj="comboBoxToggleListButton" type="button" > - +
+ EuiIconMock +
@@ -226,16 +206,9 @@ exports[`Frequencies renders Frequency 1`] = ` - +
+ EuiIconMock +
@@ -289,21 +262,9 @@ exports[`Frequencies renders FrequencyPicker 1`] = ` - +
+ EuiIconMock +
@@ -356,21 +317,9 @@ exports[`Frequencies renders FrequencyPicker 1`] = ` - +
+ EuiIconMock +
@@ -426,16 +375,9 @@ exports[`Frequencies renders Interval 1`] = ` - +
+ EuiIconMock +
@@ -488,21 +430,9 @@ exports[`Frequencies renders Interval 1`] = ` - +
+ EuiIconMock +
diff --git a/public/pages/CreateMonitor/containers/AnomalyDetectors/__tests__/__snapshots__/AnomalyDetector.test.js.snap b/public/pages/CreateMonitor/containers/AnomalyDetectors/__tests__/__snapshots__/AnomalyDetector.test.js.snap index 46fc05996..589431f1b 100644 --- a/public/pages/CreateMonitor/containers/AnomalyDetectors/__tests__/__snapshots__/AnomalyDetector.test.js.snap +++ b/public/pages/CreateMonitor/containers/AnomalyDetectors/__tests__/__snapshots__/AnomalyDetector.test.js.snap @@ -789,25 +789,9 @@ exports[`AnomalyDetectors renders 1`] = ` size="m" type="arrowDown" > - - - +
+ EuiIconMock +
diff --git a/public/pages/CreateMonitor/containers/MonitorIndex/MonitorIndex.test.js b/public/pages/CreateMonitor/containers/MonitorIndex/MonitorIndex.test.js index 537f48e85..581170d3a 100644 --- a/public/pages/CreateMonitor/containers/MonitorIndex/MonitorIndex.test.js +++ b/public/pages/CreateMonitor/containers/MonitorIndex/MonitorIndex.test.js @@ -159,6 +159,6 @@ describe('MonitorIndex', () => { .simulate('keyDown', { key: 'Enter' }); // Validate the specific index is in the input field - expect(wrapper.find('[data-test-subj="comboBoxInput"]').text()).toEqual('logstash'); + expect(wrapper.find('[data-test-subj="comboBoxInput"]').text()).toEqual('logstashEuiIconMock'); }); }); diff --git a/public/pages/CreateMonitor/containers/MonitorIndex/__snapshots__/MonitorIndex.test.js.snap b/public/pages/CreateMonitor/containers/MonitorIndex/__snapshots__/MonitorIndex.test.js.snap index 2c4259389..9abc3ae7f 100644 --- a/public/pages/CreateMonitor/containers/MonitorIndex/__snapshots__/MonitorIndex.test.js.snap +++ b/public/pages/CreateMonitor/containers/MonitorIndex/__snapshots__/MonitorIndex.test.js.snap @@ -779,25 +779,9 @@ exports[`MonitorIndex renders 1`] = ` size="m" type="arrowDown" > - - - +
+ EuiIconMock +
diff --git a/public/pages/CreateTrigger/components/Action/__snapshots__/Action.test.js.snap b/public/pages/CreateTrigger/components/Action/__snapshots__/Action.test.js.snap index 31ee1cb43..f7c795f04 100644 --- a/public/pages/CreateTrigger/components/Action/__snapshots__/Action.test.js.snap +++ b/public/pages/CreateTrigger/components/Action/__snapshots__/Action.test.js.snap @@ -21,16 +21,9 @@ exports[`Action renders with Notifications plugin installed 1`] = ` - +
+ EuiIconMock +
- +
+ EuiIconMock +
@@ -226,16 +212,9 @@ exports[`Action renders with Notifications plugin installed 1`] = ` - +
+ EuiIconMock +
@@ -321,17 +300,9 @@ exports[`Action renders with Notifications plugin installed 1`] = ` target="_blank" > Learn more - +
+ EuiIconMock +
@@ -592,21 +563,9 @@ exports[`Action renders without Notifications plugin installed 1`] = ` - +
+ EuiIconMock +
- +
+ EuiIconMock +
@@ -810,20 +757,9 @@ exports[`Action renders without Notifications plugin installed 1`] = ` - +
+ EuiIconMock +
@@ -843,16 +779,9 @@ exports[`Action renders without Notifications plugin installed 1`] = `
- +
+ EuiIconMock +
@@ -873,23 +802,19 @@ exports[`Action renders without Notifications plugin installed 1`] = ` rel="noreferrer" > Learn more - - - - .

+ + . +

@@ -970,20 +895,9 @@ exports[`Action renders without Notifications plugin installed 1`] = ` target="_blank" > Learn more - - - +
+ EuiIconMock +
diff --git a/public/pages/CreateTrigger/components/Action/actions/__snapshots__/Message.test.js.snap b/public/pages/CreateTrigger/components/Action/actions/__snapshots__/Message.test.js.snap index 939da10b5..2d689a0b2 100644 --- a/public/pages/CreateTrigger/components/Action/actions/__snapshots__/Message.test.js.snap +++ b/public/pages/CreateTrigger/components/Action/actions/__snapshots__/Message.test.js.snap @@ -73,17 +73,9 @@ exports[`Message renders 1`] = ` target="_blank" > Learn more - +
+ EuiIconMock +
diff --git a/public/pages/CreateTrigger/components/NotificationsCallOut/__snapshots__/NotificationsCallOut.test.js.snap b/public/pages/CreateTrigger/components/NotificationsCallOut/__snapshots__/NotificationsCallOut.test.js.snap index f409320c8..ea860fa69 100644 --- a/public/pages/CreateTrigger/components/NotificationsCallOut/__snapshots__/NotificationsCallOut.test.js.snap +++ b/public/pages/CreateTrigger/components/NotificationsCallOut/__snapshots__/NotificationsCallOut.test.js.snap @@ -8,16 +8,9 @@ exports[`NotifictionsCallOut renders 1`] = `
- +
+ EuiIconMock +
@@ -38,20 +31,19 @@ exports[`NotifictionsCallOut renders 1`] = ` rel="noreferrer" > Learn more - - .

+ + . +

diff --git a/public/pages/Dashboard/components/DashboardControls/__snapshots__/DashboardControls.test.js.snap b/public/pages/Dashboard/components/DashboardControls/__snapshots__/DashboardControls.test.js.snap index 5cb0bb9c5..fb94a8bd7 100644 --- a/public/pages/Dashboard/components/DashboardControls/__snapshots__/DashboardControls.test.js.snap +++ b/public/pages/Dashboard/components/DashboardControls/__snapshots__/DashboardControls.test.js.snap @@ -26,16 +26,9 @@ exports[`DashboardControls renders 1`] = ` - +
+ EuiIconMock +
@@ -91,16 +84,9 @@ exports[`DashboardControls renders 1`] = ` - +
+ EuiIconMock +
@@ -157,16 +143,9 @@ exports[`DashboardControls renders 1`] = ` - +
+ EuiIconMock +
@@ -185,16 +164,9 @@ exports[`DashboardControls renders 1`] = ` data-test-subj="pagination-button-previous" type="button" > - +
+ EuiIconMock +
    - +
    + EuiIconMock +
    diff --git a/public/pages/Dashboard/containers/__snapshots__/Dashboard.test.js.snap b/public/pages/Dashboard/containers/__snapshots__/Dashboard.test.js.snap index 94f186775..145cb32a6 100644 --- a/public/pages/Dashboard/containers/__snapshots__/Dashboard.test.js.snap +++ b/public/pages/Dashboard/containers/__snapshots__/Dashboard.test.js.snap @@ -361,29 +361,9 @@ exports[`Dashboard renders in flyout 1`] = ` size="m" type="search" > - - - - - +
    + EuiIconMock +
    @@ -523,30 +503,9 @@ exports[`Dashboard renders in flyout 1`] = ` size="m" type="arrowDown" > - - - - - +
    + EuiIconMock +
    @@ -618,30 +577,9 @@ exports[`Dashboard renders in flyout 1`] = ` size="m" type="arrowLeft" > - - - - - +
    + EuiIconMock +
    @@ -766,30 +704,9 @@ exports[`Dashboard renders in flyout 1`] = ` size="m" type="arrowRight" > - - - - - +
    + EuiIconMock +
    @@ -1063,30 +980,9 @@ exports[`Dashboard renders in flyout 1`] = ` size="s" type="arrowDown" > - - - - - +
    + EuiIconMock +
    - - - - - +
    + EuiIconMock +
    @@ -2080,29 +1956,9 @@ exports[`Dashboard renders with alert by triggers view 1`] = ` size="m" type="search" > - - - - - +
    + EuiIconMock +
    @@ -2240,30 +2096,9 @@ exports[`Dashboard renders with alert by triggers view 1`] = ` size="m" type="arrowDown" > - - - - - +
    + EuiIconMock +
    @@ -2403,30 +2238,9 @@ exports[`Dashboard renders with alert by triggers view 1`] = ` size="m" type="arrowDown" > - - - - - +
    + EuiIconMock +
    @@ -2498,30 +2312,9 @@ exports[`Dashboard renders with alert by triggers view 1`] = ` size="m" type="arrowLeft" > - - - - - +
    + EuiIconMock +
    @@ -2646,30 +2439,9 @@ exports[`Dashboard renders with alert by triggers view 1`] = ` size="m" type="arrowRight" > - - - - - +
    + EuiIconMock +
    @@ -2976,30 +2748,9 @@ exports[`Dashboard renders with alert by triggers view 1`] = ` size="s" type="arrowDown" > - - - - - +
    + EuiIconMock +
    - - - - - +
    + EuiIconMock +
    @@ -4120,25 +3851,9 @@ exports[`Dashboard renders with per alert view 1`] = ` size="m" type="search" > - - - +
    + EuiIconMock +
    @@ -4276,25 +3991,9 @@ exports[`Dashboard renders with per alert view 1`] = ` size="m" type="arrowDown" > - - - +
    + EuiIconMock +
    @@ -4434,25 +4133,9 @@ exports[`Dashboard renders with per alert view 1`] = ` size="m" type="arrowDown" > - - - +
    + EuiIconMock +
    @@ -4524,25 +4207,9 @@ exports[`Dashboard renders with per alert view 1`] = ` size="m" type="arrowLeft" > - - - +
    + EuiIconMock +
    @@ -4667,25 +4334,9 @@ exports[`Dashboard renders with per alert view 1`] = ` size="m" type="arrowRight" > - - - +
    + EuiIconMock +
    @@ -4959,25 +4610,9 @@ exports[`Dashboard renders with per alert view 1`] = ` size="s" type="arrowDown" > - - - +
    + EuiIconMock +
    - - - +
    + EuiIconMock +
    diff --git a/public/pages/Destinations/components/DestinationsList/DestinationsActions/__snapshots__/DestinationsActions.test.js.snap b/public/pages/Destinations/components/DestinationsList/DestinationsActions/__snapshots__/DestinationsActions.test.js.snap index f5e0025bb..f3065c1b2 100644 --- a/public/pages/Destinations/components/DestinationsList/DestinationsActions/__snapshots__/DestinationsActions.test.js.snap +++ b/public/pages/Destinations/components/DestinationsList/DestinationsActions/__snapshots__/DestinationsActions.test.js.snap @@ -21,16 +21,9 @@ exports[` should render DestinationsActions 1`] = ` - +
    + EuiIconMock +
    diff --git a/public/pages/Destinations/components/DestinationsList/DestinationsControls/__snapshots__/DestinationsControls.test.js.snap b/public/pages/Destinations/components/DestinationsList/DestinationsControls/__snapshots__/DestinationsControls.test.js.snap index f86ec6db4..9750f8718 100644 --- a/public/pages/Destinations/components/DestinationsList/DestinationsControls/__snapshots__/DestinationsControls.test.js.snap +++ b/public/pages/Destinations/components/DestinationsList/DestinationsControls/__snapshots__/DestinationsControls.test.js.snap @@ -26,16 +26,9 @@ exports[` should render DestinationsControls 1`] = ` - +
    + EuiIconMock +
    @@ -86,16 +79,9 @@ exports[` should render DestinationsControls 1`] = ` - +
    + EuiIconMock +
    @@ -115,16 +101,9 @@ exports[` should render DestinationsControls 1`] = ` disabled="" type="button" > - +
    + EuiIconMock +
      should render DestinationsControls 1`] = ` data-test-subj="pagination-button-next" type="button" > - +
      + EuiIconMock +
      diff --git a/public/pages/Destinations/containers/CreateDestination/ManageEmailGroups/__snapshots__/ManageEmailGroups.test.js.snap b/public/pages/Destinations/containers/CreateDestination/ManageEmailGroups/__snapshots__/ManageEmailGroups.test.js.snap index c5aed5654..481d1214a 100644 --- a/public/pages/Destinations/containers/CreateDestination/ManageEmailGroups/__snapshots__/ManageEmailGroups.test.js.snap +++ b/public/pages/Destinations/containers/CreateDestination/ManageEmailGroups/__snapshots__/ManageEmailGroups.test.js.snap @@ -64,20 +64,9 @@ exports[`ManageEmailGroups renders when email is disallowed 1`] = ` class="euiButtonIcon euiButtonIcon--text euiButtonIcon--empty euiButtonIcon--xSmall euiModal__closeIcon" type="button" > - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - - - - - +
      + EuiIconMock +
      @@ -827,16 +752,9 @@ exports[`ManageEmailGroups renders when visible 1`] = ` class="euiButtonIcon euiButtonIcon--text euiButtonIcon--empty euiButtonIcon--xSmall euiModal__closeIcon" type="button" > - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - - - +
      + EuiIconMock +
      diff --git a/public/pages/Destinations/containers/CreateDestination/ManageSenders/__snapshots__/ManageSenders.test.js.snap b/public/pages/Destinations/containers/CreateDestination/ManageSenders/__snapshots__/ManageSenders.test.js.snap index 8f9d35ca8..afeee5e08 100644 --- a/public/pages/Destinations/containers/CreateDestination/ManageSenders/__snapshots__/ManageSenders.test.js.snap +++ b/public/pages/Destinations/containers/CreateDestination/ManageSenders/__snapshots__/ManageSenders.test.js.snap @@ -64,20 +64,9 @@ exports[`ManageSenders renders when email is disallowed 1`] = ` class="euiButtonIcon euiButtonIcon--text euiButtonIcon--empty euiButtonIcon--xSmall euiModal__closeIcon" type="button" > - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - - - - - +
      + EuiIconMock +
      @@ -827,16 +752,9 @@ exports[`ManageSenders renders when visible 1`] = ` class="euiButtonIcon euiButtonIcon--text euiButtonIcon--empty euiButtonIcon--xSmall euiModal__closeIcon" type="button" > - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - +
      + EuiIconMock +
      - - - +
      + EuiIconMock +
      diff --git a/public/pages/Destinations/containers/DestinationsList/__snapshots__/DestinationsList.test.js.snap b/public/pages/Destinations/containers/DestinationsList/__snapshots__/DestinationsList.test.js.snap index d065675c7..3cbd3af90 100644 --- a/public/pages/Destinations/containers/DestinationsList/__snapshots__/DestinationsList.test.js.snap +++ b/public/pages/Destinations/containers/DestinationsList/__snapshots__/DestinationsList.test.js.snap @@ -125,25 +125,9 @@ exports[`DestinationsList renders when Notification plugin is installed 1`] = ` size="m" type="alert" > - - - +
      + EuiIconMock +
      - - - +
      + EuiIconMock +
      @@ -393,30 +359,9 @@ exports[`DestinationsList renders when Notification plugin is installed 1`] = ` size="m" type="arrowDown" > - - - - - +
      + EuiIconMock +
      - - - +
      + EuiIconMock +
      @@ -740,25 +669,9 @@ exports[`DestinationsList renders when Notification plugin is installed 1`] = ` size="m" type="arrowDown" > - - - +
      + EuiIconMock +
      @@ -830,25 +743,9 @@ exports[`DestinationsList renders when Notification plugin is installed 1`] = ` size="m" type="arrowLeft" > - - - +
      + EuiIconMock +
      @@ -973,25 +870,9 @@ exports[`DestinationsList renders when Notification plugin is installed 1`] = ` size="m" type="arrowRight" > - - - +
      + EuiIconMock +
      @@ -1208,25 +1089,9 @@ exports[`DestinationsList renders when Notification plugin is installed 1`] = ` size="s" type="arrowDown" > - - - +
      + EuiIconMock +
      - - - +
      + EuiIconMock +
      @@ -1750,30 +1599,9 @@ exports[`DestinationsList renders when Notification plugin is not installed 1`] size="m" type="alert" > - - - - - +
      + EuiIconMock +
      - - - - - +
      + EuiIconMock +
      @@ -2103,29 +1911,9 @@ exports[`DestinationsList renders when Notification plugin is not installed 1`] size="m" type="search" > - - - - - +
      + EuiIconMock +
      @@ -2213,30 +2001,9 @@ exports[`DestinationsList renders when Notification plugin is not installed 1`] size="m" type="arrowDown" > - - - - - +
      + EuiIconMock +
      @@ -2308,30 +2075,9 @@ exports[`DestinationsList renders when Notification plugin is not installed 1`] size="m" type="arrowLeft" > - - - - - +
      + EuiIconMock +
      @@ -2456,30 +2202,9 @@ exports[`DestinationsList renders when Notification plugin is not installed 1`] size="m" type="arrowRight" > - - - - - +
      + EuiIconMock +
      @@ -2696,30 +2421,9 @@ exports[`DestinationsList renders when Notification plugin is not installed 1`] size="s" type="arrowDown" > - - - - - +
      + EuiIconMock +
      - - - - - +
      + EuiIconMock +
      @@ -3247,30 +2931,9 @@ exports[`DestinationsList renders when email is disallowed 1`] = ` size="m" type="alert" > - - - - - +
      + EuiIconMock +
      - - - - - +
      + EuiIconMock +
      @@ -3606,29 +3249,9 @@ exports[`DestinationsList renders when email is disallowed 1`] = ` size="m" type="search" > - - - - - +
      + EuiIconMock +
      @@ -3746,30 +3369,9 @@ exports[`DestinationsList renders when email is disallowed 1`] = ` size="m" type="arrowDown" > - - - - - +
      + EuiIconMock +
      @@ -3841,30 +3443,9 @@ exports[`DestinationsList renders when email is disallowed 1`] = ` size="m" type="arrowLeft" > - - - - - +
      + EuiIconMock +
      @@ -3989,30 +3570,9 @@ exports[`DestinationsList renders when email is disallowed 1`] = ` size="m" type="arrowRight" > - - - - - +
      + EuiIconMock +
      @@ -4229,30 +3789,9 @@ exports[`DestinationsList renders when email is disallowed 1`] = ` size="s" type="arrowDown" > - - - - - +
      + EuiIconMock +
      - - - - - +
      + EuiIconMock +
      diff --git a/public/pages/Monitors/components/MonitorActions/__snapshots__/MonitorActions.test.js.snap b/public/pages/Monitors/components/MonitorActions/__snapshots__/MonitorActions.test.js.snap index fa25117d4..2b6b0796b 100644 --- a/public/pages/Monitors/components/MonitorActions/__snapshots__/MonitorActions.test.js.snap +++ b/public/pages/Monitors/components/MonitorActions/__snapshots__/MonitorActions.test.js.snap @@ -22,16 +22,9 @@ exports[`MonitorActions renders 1`] = ` - +
      + EuiIconMock +
      diff --git a/test/setup.jest.js b/test/setup.jest.js index e5fbbdf93..d012e2476 100644 --- a/test/setup.jest.js +++ b/test/setup.jest.js @@ -6,13 +6,13 @@ import React from 'react'; // https://github.com/elastic/eui/issues/2530 -jest.mock('@elastic/eui/lib/components/icon', () => ({ +jest.mock('@elastic/eui/lib/eui_components/icon', () => ({ EuiIcon: () =>
      EuiIconMock
      , __esModule: true, - IconPropType: require('@elastic/eui/lib/components/icon/icon').IconPropType, - ICON_TYPES: require('@elastic/eui/lib/components/icon/icon').TYPES, - ICON_SIZES: require('@elastic/eui/lib/components/icon/icon').SIZES, - ICON_COLORS: require('@elastic/eui/lib/components/icon/icon').COLORS, + IconPropType: require('@elastic/eui/lib/eui_components/icon/icon').IconPropType, + ICON_TYPES: require('@elastic/eui/lib/eui_components/icon/icon').TYPES, + ICON_SIZES: require('@elastic/eui/lib/eui_components/icon/icon').SIZES, + ICON_COLORS: require('@elastic/eui/lib/eui_components/icon/icon').COLORS, })); jest.mock('@elastic/eui/lib/components/form/form_row/make_id', () => () => 'some_make_id');