Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ui/packages/shared/profile/src/ProfileSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
} from '@parca/components';
import {CloseIcon} from '@parca/icons';
import {Query} from '@parca/parser';
import {TEST_IDS, testId} from '@parca/test-utils';
import {type NavigateFunction} from '@parca/utilities';

import {ProfileSelection} from '..';
Expand Down Expand Up @@ -331,7 +332,11 @@ const ProfileSelector = ({
/>
{comparing && (
<div>
<IconButton onClick={() => closeProfile()} icon={<CloseIcon />} />
<IconButton
onClick={() => closeProfile()}
icon={<CloseIcon />}
{...testId(TEST_IDS.COMPARE_CLOSE_BUTTON)}
/>
</div>
)}
</div>
Expand Down
1 change: 1 addition & 0 deletions ui/packages/shared/test-utils/src/test-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export const TEST_IDS = {
COMPARE_SIDE_A: 'compare-side-a',
COMPARE_SIDE_B: 'compare-side-b',
COMPARE_PROFILE_VIEW: 'compare-profile-view',
COMPARE_CLOSE_BUTTON: 'compare-close-button',

// Diff Legend
DIFF_LEGEND: 'diff-legend',
Expand Down
Loading