diff --git a/public/app/plugins/datasource/tempo/SearchTraceQLEditor/GroupByField.tsx b/public/app/plugins/datasource/tempo/SearchTraceQLEditor/GroupByField.tsx index 32776acd9c1..2fb1682bcba 100644 --- a/public/app/plugins/datasource/tempo/SearchTraceQLEditor/GroupByField.tsx +++ b/public/app/plugins/datasource/tempo/SearchTraceQLEditor/GroupByField.tsx @@ -70,7 +70,7 @@ export const GroupByField = (props: Props) => { return ( <> diff --git a/public/app/plugins/datasource/tempo/SearchTraceQLEditor/TraceQLSearch.test.tsx b/public/app/plugins/datasource/tempo/SearchTraceQLEditor/TraceQLSearch.test.tsx index b863513922b..29a32a89c22 100644 --- a/public/app/plugins/datasource/tempo/SearchTraceQLEditor/TraceQLSearch.test.tsx +++ b/public/app/plugins/datasource/tempo/SearchTraceQLEditor/TraceQLSearch.test.tsx @@ -124,7 +124,7 @@ describe('TraceQLSearch', () => { it('should not render group by when feature toggle is not enabled', async () => { await waitFor(() => { render(); - const groupBy = screen.queryByText('Group By Metrics'); + const groupBy = screen.queryByText('Aggregate by'); expect(groupBy).toBeNull(); expect(groupBy).not.toBeInTheDocument(); }); @@ -134,7 +134,7 @@ describe('TraceQLSearch', () => { config.featureToggles.metricsSummary = true; await waitFor(() => { render(); - const groupBy = screen.queryByText('Group By Metrics'); + const groupBy = screen.queryByText('Aggregate by'); expect(groupBy).not.toBeNull(); expect(groupBy).toBeInTheDocument(); });