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)
  • Loading branch information
e40pud committed Nov 24, 2023
1 parent 9754a02 commit 0a3ea5d
Show file tree
Hide file tree
Showing 23 changed files with 1,694 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 0a3ea5d

Please sign in to comment.