Skip to content

Commit fcb2c90

Browse files
committed
includes tpm unit in Observability overview page and updates test
1 parent 310bd5d commit fcb2c90

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

x-pack/plugins/observability/public/components/app/section/apm/index.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe('APMSection', () => {
6565
expect(getByText('APM')).toBeInTheDocument();
6666
expect(getByText('View in app')).toBeInTheDocument();
6767
expect(getByText('Services 11')).toBeInTheDocument();
68-
expect(getByText('Transactions per minute 312.00k')).toBeInTheDocument();
68+
expect(getByText('Throughput 312.00k tpm')).toBeInTheDocument();
6969
expect(queryAllByTestId('loading')).toEqual([]);
7070
});
7171
it('shows loading state', () => {
@@ -80,6 +80,6 @@ describe('APMSection', () => {
8080
expect(getByTestId('loading')).toBeInTheDocument();
8181
expect(queryAllByText('View in app')).toEqual([]);
8282
expect(queryAllByText('Services 11')).toEqual([]);
83-
expect(queryAllByText('Transactions per minute 312.00k')).toEqual([]);
83+
expect(queryAllByText('Throughput 312.00k tpm')).toEqual([]);
8484
});
8585
});

x-pack/plugins/observability/public/components/app/section/apm/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function APMSection({ bucketSize }: Props) {
9292
</EuiFlexItem>
9393
<EuiFlexItem grow={false}>
9494
<StyledStat
95-
title={formatTpm(stats?.transactions.value)}
95+
title={`${formatTpm(stats?.transactions.value)} tpm`}
9696
description={i18n.translate('xpack.observability.overview.apm.throughput', {
9797
defaultMessage: 'Throughput',
9898
})}

0 commit comments

Comments
 (0)