Skip to content

Commit

Permalink
fix url locators test case error
Browse files Browse the repository at this point in the history
  • Loading branch information
viajes7 committed Nov 21, 2024
1 parent a347862 commit 1f0b09b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export const DataStreamDetailPanel: React.FunctionComponent<Props> = ({
{ilmPolicyLink ? (
<EuiLink
data-test-subj={'ilmPolicyLink'}
data-href={ilmPolicyLink}
onClick={() => core.application.navigateToUrl(ilmPolicyLink)}
>
<EuiTextColor color="subdued">{ilmPolicyName}</EuiTextColor>
Expand All @@ -209,6 +210,7 @@ export const DataStreamDetailPanel: React.FunctionComponent<Props> = ({
{ilmPolicyLink ? (
<EuiLink
data-test-subj={'ilmPolicyLink'}
data-href={ilmPolicyLink}
onClick={() => core.application.navigateToUrl(ilmPolicyLink)}
>
{ilmPolicyName}
Expand Down

0 comments on commit 1f0b09b

Please sign in to comment.