{i18n.CASE_CLOSURE_OPTIONS_DESC}
diff --git a/x-pack/platform/plugins/shared/cases/public/components/configure_cases/connectors.tsx b/x-pack/platform/plugins/shared/cases/public/components/configure_cases/connectors.tsx index 3d742a202a0b7..a831c5080fa6a 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/configure_cases/connectors.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/configure_cases/connectors.tsx @@ -91,7 +91,7 @@ const ConnectorsComponent: React.FC{i18n.DESCRIPTION}
} data-test-subj="custom-fields-form-group" css={{ alignItems: 'flex-start' }} diff --git a/x-pack/platform/plugins/shared/cases/public/components/header_page/index.test.tsx b/x-pack/platform/plugins/shared/cases/public/components/header_page/index.test.tsx index c2a9aa9c99d97..5b2308f02cfe4 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/header_page/index.test.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/header_page/index.test.tsx @@ -36,16 +36,6 @@ describe('HeaderPage', () => { expect(result.getByText('Test supplement')).toBeInTheDocument(); }); - it('renders the back link when provided', () => { - const wrapper = mount( -{i18n.DESCRIPTION}
} diff --git a/x-pack/platform/plugins/shared/cases/public/components/templates/index.tsx b/x-pack/platform/plugins/shared/cases/public/components/templates/index.tsx index f8c2fcb659a7c..cbb75f915d3cb 100644 --- a/x-pack/platform/plugins/shared/cases/public/components/templates/index.tsx +++ b/x-pack/platform/plugins/shared/cases/public/components/templates/index.tsx @@ -70,7 +70,9 @@ const TemplatesComponent: React.FC{i18n.TEMPLATE_DESCRIPTION}
} diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.test.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.test.tsx index 2d1b31bc6e000..9f6f626f11b30 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.test.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.test.tsx @@ -159,10 +159,9 @@ describe('StepDefinePackagePolicy', () => { await userEvent.click(renderResult.getByText('Advanced options').closest('button')!); await waitFor(() => { - expect(renderResult.getByTestId('comboBoxSearchInput')).toHaveAttribute( - 'placeholder', - 'ns' - ); + expect( + renderResult.getByTestId('packagePolicyNamespaceInput').querySelector('input') + ).toHaveAttribute('placeholder', 'ns'); }); }); @@ -175,10 +174,9 @@ describe('StepDefinePackagePolicy', () => { await userEvent.click(renderResult.getByText('Advanced options').closest('button')!); await waitFor(() => { - expect(renderResult.getByTestId('comboBoxSearchInput')).toHaveAttribute( - 'placeholder', - 'default' - ); + expect( + renderResult.getByTestId('packagePolicyNamespaceInput').querySelector('input') + ).toHaveAttribute('placeholder', 'default'); }); }); }); diff --git a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.tsx b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.tsx index f49d07f23ab13..df077a029fb4f 100644 --- a/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.tsx +++ b/x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import React, { memo, useState, useEffect } from 'react'; +import React, { memo, useState, useEffect, useMemo } from 'react'; import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; import { @@ -21,13 +21,15 @@ import { EuiCallOut, EuiSpacer, EuiSelect, + type EuiComboBoxOptionOption, + EuiIconTip, } from '@elastic/eui'; import styled from 'styled-components'; import type { PackageInfo, NewPackagePolicy, RegistryVarsEntry } from '../../../../../types'; import { Loading } from '../../../../../components'; -import { useStartServices } from '../../../../../hooks'; +import { useGetEpmDatastreams, useStartServices } from '../../../../../hooks'; import { isAdvancedVar } from '../../services'; import type { PackagePolicyValidationResults } from '../../services'; @@ -90,6 +92,26 @@ export const StepDefinePackagePolicy: React.FunctionComponent<{ allowedOutputs, } = useOutputs(packagePolicy, packageInfo.name); + const { data: epmDatastreamsRes } = useGetEpmDatastreams(); + + const datastreamsOptions = useMemo