Skip to content

Commit

Permalink
chore: added trace detail tests (SigNoz#5523)
Browse files Browse the repository at this point in the history
* feat: added trace filter test cases

* feat: added trace filter test cases - initial render

* feat: added test cases - query sync, filter section behaviour etc

* feat: deleted mock-data files

* feat: added test cases of undefined filters and items

* feat: deleted tsconfig

* feat: added clear and rest btn test cases for traces filters

* feat: added collapse and uncollapse test for traces filters

* chore: added trace detail tests

* chore: added trace detail tests - span selection, focus and reset

* chore: fixed eslint
  • Loading branch information
SagarRajput-7 authored Aug 29, 2024
1 parent 15b0569 commit fb92ddc
Show file tree
Hide file tree
Showing 4 changed files with 2,321 additions and 2 deletions.
13 changes: 11 additions & 2 deletions frontend/src/container/TraceDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,18 @@ function TraceDetail({ response }: TraceDetailProps): JSX.Element {
<Col flex={`${SPAN_DETAILS_LEFT_COL_WIDTH}px`} />
<Col flex="auto">
<StyledSpace styledclass={[styles.floatRight]}>
<Button onClick={onFocusSelectedSpanHandler} icon={<FilterOutlined />}>
<Button
onClick={onFocusSelectedSpanHandler}
icon={<FilterOutlined />}
data-testid="span-focus-btn"
>
Focus on selected span
</Button>
<Button type="default" onClick={onResetHandler}>
<Button
type="default"
onClick={onResetHandler}
data-testid="reset-focus"
>
Reset Focus
</Button>
</StyledSpace>
Expand Down Expand Up @@ -262,6 +270,7 @@ function TraceDetail({ response }: TraceDetailProps): JSX.Element {
collapsedWidth={40}
defaultCollapsed
onCollapse={(value): void => setCollapsed(value)}
data-testid="span-details-sider"
>
{!collapsed && (
<StyledCol styledclass={[styles.selectedSpanDetailContainer]}>
Expand Down
Loading

0 comments on commit fb92ddc

Please sign in to comment.