From 970356973f498a04987eaf14d07354e78825c55b Mon Sep 17 00:00:00 2001 From: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com> Date: Mon, 30 Jun 2025 14:10:03 +0200 Subject: [PATCH] [ML] Migrate `Enzyme` tests to `RTL` (#225423) Resolves https://github.com/elastic/kibana/issues/223197 (cherry picked from commit a01759c410312b65134c9daf505d94f8e55b9c44) --- .../__snapshots__/list.test.tsx.snap | 879 +++++++++++------- .../custom_url_editor/list.test.tsx | 37 +- .../custom_urls/custom_url_editor/list.tsx | 6 +- .../timerange_bar/timerange_bar.test.js | 14 +- .../outlier_exploration.test.tsx | 31 - .../create_analytics_button.test.tsx | 24 +- ...explorer_no_influencers_found.test.js.snap | 12 +- .../explorer_no_influencers_found.test.js | 11 +- .../explorer_no_results_found.test.js.snap | 51 +- .../explorer_no_results_found.test.js | 13 +- .../explorer_chart_label.test.js.snap | 133 ++- .../explorer_chart_label_badge.test.js.snap | 28 +- .../explorer_chart_label.test.js | 16 +- .../explorer_chart_label_badge.test.js | 8 +- .../filter_list_usage_popover.test.js.snap | 142 +-- .../filter_list_usage_popover.test.js | 52 +- 16 files changed, 793 insertions(+), 664 deletions(-) delete mode 100644 x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/outlier_exploration/outlier_exploration.test.tsx diff --git a/x-pack/platform/plugins/shared/ml/public/application/components/custom_urls/custom_url_editor/__snapshots__/list.test.tsx.snap b/x-pack/platform/plugins/shared/ml/public/application/components/custom_urls/custom_url_editor/__snapshots__/list.test.tsx.snap index b282465efc7d6..234c59d661a61 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/components/custom_urls/custom_url_editor/__snapshots__/list.test.tsx.snap +++ b/x-pack/platform/plugins/shared/ml/public/application/components/custom_urls/custom_url_editor/__snapshots__/list.test.tsx.snap @@ -4,389 +4,590 @@ exports[`CustomUrlList renders a list of custom URLs 1`] = `
-
+ Try widening the time selection or moving further back in time +
+