Skip to content

Commit 02c5e1d

Browse files
committed
Fix test
1 parent 4d37358 commit 02c5e1d

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

static/app/components/group/groupSummary.spec.tsx

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,6 @@ describe('GroupSummary', function () {
2929
},
3030
};
3131

32-
const mockSummaryDataWithLowScores = {
33-
groupId: '1',
34-
whatsWrong: 'Test whats wrong',
35-
trace: 'Test trace',
36-
possibleCause: 'Test possible cause',
37-
headline: 'Test headline',
38-
scores: {
39-
possibleCauseConfidence: 0.5,
40-
possibleCauseNovelty: 0.0,
41-
},
42-
};
43-
4432
const mockSummaryDataWithNullScores = {
4533
groupId: '1',
4634
whatsWrong: 'Test whats wrong',
@@ -119,27 +107,6 @@ describe('GroupSummary', function () {
119107
expect(screen.getByText('Test possible cause')).toBeInTheDocument();
120108
});
121109

122-
it('renders the summary without possible cause when scores are low', async function () {
123-
MockApiClient.addMockResponse({
124-
url: `/organizations/${mockProject.organization.slug}/issues/${mockGroup.id}/summarize/`,
125-
method: 'POST',
126-
body: mockSummaryDataWithLowScores,
127-
});
128-
129-
render(<GroupSummary event={mockEvent} group={mockGroup} project={mockProject} />, {
130-
organization,
131-
});
132-
133-
await waitFor(() => {
134-
expect(screen.getByText('What Happened')).toBeInTheDocument();
135-
});
136-
expect(await screen.findByText('Test whats wrong')).toBeInTheDocument();
137-
expect(screen.getByText('In the Trace')).toBeInTheDocument();
138-
expect(screen.getByText('Test trace')).toBeInTheDocument();
139-
expect(screen.queryByText('Initial Guess')).not.toBeInTheDocument();
140-
expect(screen.queryByText('Test possible cause')).not.toBeInTheDocument();
141-
});
142-
143110
it('shows loading state', function () {
144111
MockApiClient.addMockResponse({
145112
url: `/organizations/${mockProject.organization.slug}/issues/${mockGroup.id}/summarize/`,

0 commit comments

Comments
 (0)