mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Co-authored-by: Candace Park <56409205+parkiino@users.noreply.github.com>
This commit is contained in:
parent
90b3416c55
commit
2d0eec656c
3 changed files with 12 additions and 1 deletions
|
@ -1086,6 +1086,11 @@ describe('when on the endpoint list page', () => {
|
|||
).toBe('Policy Response');
|
||||
});
|
||||
|
||||
it('should display timestamp', () => {
|
||||
const timestamp = renderResult.queryByTestId('endpointDetailsPolicyResponseTimestamp');
|
||||
expect(timestamp).not.toBeNull();
|
||||
});
|
||||
|
||||
it('should show a configuration section for each protection', async () => {
|
||||
const configAccordions = await renderResult.findAllByTestId(
|
||||
'endpointDetailsPolicyResponseConfigAccordion'
|
||||
|
|
|
@ -17,7 +17,7 @@ export const SupportedVersionNotice = ({ optionName }: { optionName: string }) =
|
|||
}
|
||||
|
||||
return (
|
||||
<EuiText color="subdued" size="xs">
|
||||
<EuiText color="subdued" size="xs" data-test-subj="policySupportedVersions">
|
||||
<i>
|
||||
<FormattedMessage
|
||||
id="xpack.securitySolution.endpoint.policyDetails.supportedVersion"
|
||||
|
|
|
@ -15,6 +15,7 @@ import { FullAgentPolicyInput } from '../../../../plugins/fleet/common';
|
|||
import { PolicyConfig } from '../../../../plugins/security_solution/common/endpoint/types';
|
||||
import { ManifestSchema } from '../../../../plugins/security_solution/common/endpoint/schema/manifest';
|
||||
import { policyFactory } from '../../../../plugins/security_solution/common/endpoint/models/policy_config';
|
||||
import { popupVersionsMap } from '../../../../plugins/security_solution/public/management/pages/policy/view/policy_forms/protections/popup_options_to_versions';
|
||||
|
||||
export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||
const browser = getService('browser');
|
||||
|
@ -307,6 +308,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
}
|
||||
});
|
||||
|
||||
it('should show the supported Endpoint version', async () => {
|
||||
const supportedVersion = await testSubjects.find('policySupportedVersions');
|
||||
expect(supportedVersion).to.be('Agent version ' + popupVersionsMap.get('malware'));
|
||||
});
|
||||
|
||||
it('should show the custom message text area when the Notify User checkbox is checked', async () => {
|
||||
expect(await testSubjects.isChecked('malwareUserNotificationCheckbox')).to.be(true);
|
||||
await testSubjects.existOrFail('malwareUserNotificationCustomMessage');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue