Skip to content

Commit

Permalink
[Security Solution][Detections] Add test coverage for Alert User Assi…
Browse files Browse the repository at this point in the history
…gnment (#171307) (#171930)

## Summary

Addresses #171307

This PR adds tests overage according to this test plans
#171306
  • Loading branch information
e40pud authored Nov 27, 2023
1 parent 263752b commit e317182
Show file tree
Hide file tree
Showing 23 changed files with 1,691 additions and 163 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* 2.0.
*/

export * from './alert_assignees';
export * from './alert_tags';
export * from './fleet_integrations';
export * from './index_management';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ import type { AssigneesIdsSelection } from '../../../../common/components/assign
import { AssigneesPopover } from '../../../../common/components/assignees/assignees_popover';
import { UsersAvatarsPanel } from '../../../../common/components/user_profiles/users_avatars_panel';
import { useSetAlertAssignees } from '../../../../common/components/toolbar/bulk_actions/use_set_alert_assignees';
import { ASSIGNEES_ADD_BUTTON_TEST_ID, ASSIGNEES_TITLE_TEST_ID } from './test_ids';
import {
ASSIGNEES_ADD_BUTTON_TEST_ID,
ASSIGNEES_HEADER_TEST_ID,
ASSIGNEES_TITLE_TEST_ID,
} from './test_ids';

const UpdateAssigneesButton: FC<{ togglePopover: () => void; isDisabled: boolean }> = memo(
({ togglePopover, isDisabled }) => (
Expand Down Expand Up @@ -106,7 +110,13 @@ export const Assignees: FC<AssigneesProps> = memo(
);

return (
<EuiFlexGroup alignItems="center" direction="row" gutterSize="xs" responsive={false}>
<EuiFlexGroup
data-test-subj={ASSIGNEES_HEADER_TEST_ID}
alignItems="center"
direction="row"
gutterSize="xs"
responsive={false}
>
<EuiFlexItem grow={false}>
<EuiTitle size="xxs" data-test-subj={ASSIGNEES_TITLE_TEST_ID}>
<h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const RISK_SCORE_VALUE_TEST_ID = `${FLYOUT_HEADER_TEST_ID}RiskScoreValue`
export const SHARE_BUTTON_TEST_ID = `${FLYOUT_HEADER_TEST_ID}ShareButton` as const;
export const CHAT_BUTTON_TEST_ID = 'newChatById' as const;

export const ASSIGNEES_HEADER_TEST_ID = `${FLYOUT_HEADER_TEST_ID}AssigneesHeader` as const;
export const ASSIGNEES_TITLE_TEST_ID = `${FLYOUT_HEADER_TEST_ID}AssigneesTitle` as const;
export const ASSIGNEES_ADD_BUTTON_TEST_ID = `${FLYOUT_HEADER_TEST_ID}AssigneesAddButton` as const;

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e317182

Please sign in to comment.