From 1f0b09b021f69922b5c72565e92b774d63fd4140 Mon Sep 17 00:00:00 2001 From: "huang.jusheng" Date: Thu, 21 Nov 2024 16:25:23 +0800 Subject: [PATCH] fix url locators test case error --- .../__jest__/client_integration/home/data_streams_tab.test.ts | 2 +- .../data_stream_detail_panel/data_stream_detail_panel.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/index_management/__jest__/client_integration/home/data_streams_tab.test.ts b/x-pack/plugins/index_management/__jest__/client_integration/home/data_streams_tab.test.ts index 1d7ee65790cfd..3bc122ad867f6 100644 --- a/x-pack/plugins/index_management/__jest__/client_integration/home/data_streams_tab.test.ts +++ b/x-pack/plugins/index_management/__jest__/client_integration/home/data_streams_tab.test.ts @@ -812,7 +812,7 @@ describe('Data Streams tab', () => { const { actions, findDetailPanelIlmPolicyLink } = testBed; await actions.clickNameAt(0); - expect(findDetailPanelIlmPolicyLink().prop('href')).toBe('/test/my_ilm_policy'); + expect(findDetailPanelIlmPolicyLink().prop('data-href')).toBe('/test/my_ilm_policy'); }); test('with an ILM url locator and no ILM policy', async () => { diff --git a/x-pack/plugins/index_management/public/application/sections/home/data_stream_list/data_stream_detail_panel/data_stream_detail_panel.tsx b/x-pack/plugins/index_management/public/application/sections/home/data_stream_list/data_stream_detail_panel/data_stream_detail_panel.tsx index 71ab959720b0d..10ef17c566241 100644 --- a/x-pack/plugins/index_management/public/application/sections/home/data_stream_list/data_stream_detail_panel/data_stream_detail_panel.tsx +++ b/x-pack/plugins/index_management/public/application/sections/home/data_stream_list/data_stream_detail_panel/data_stream_detail_panel.tsx @@ -195,6 +195,7 @@ export const DataStreamDetailPanel: React.FunctionComponent = ({ {ilmPolicyLink ? ( core.application.navigateToUrl(ilmPolicyLink)} > {ilmPolicyName} @@ -209,6 +210,7 @@ export const DataStreamDetailPanel: React.FunctionComponent = ({ {ilmPolicyLink ? ( core.application.navigateToUrl(ilmPolicyLink)} > {ilmPolicyName}