Skip to content

Commit ec72227

Browse files
committed
add id for tests
1 parent f0dffb1 commit ec72227

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

static/app/views/insights/queues/charts/latencyChart.spec.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ describe('latencyChart', () => {
4444
});
4545
it('renders', async () => {
4646
render(
47-
<LatencyChart destination="events" referrer={Referrer.QUEUES_SUMMARY_CHARTS} />,
47+
<LatencyChart
48+
id="latency-chart-test"
49+
destination="events"
50+
referrer={Referrer.QUEUES_SUMMARY_CHARTS}
51+
/>,
4852
{organization}
4953
);
5054
screen.getByText('Average Duration');

static/app/views/insights/queues/charts/throughputChart.spec.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ describe('throughputChart', () => {
3131
});
3232
});
3333
it('renders', async () => {
34-
render(<ThroughputChart referrer={Referrer.QUEUES_SUMMARY_CHARTS} />, {organization});
34+
render(
35+
<ThroughputChart
36+
id="throughput-chart-test"
37+
referrer={Referrer.QUEUES_SUMMARY_CHARTS}
38+
/>,
39+
{organization}
40+
);
3541
screen.getByText('Published vs Processed');
3642
expect(eventsStatsMock).toHaveBeenCalledWith(
3743
'/organizations/org-slug/events-stats/',

0 commit comments

Comments
 (0)