Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@ describe('SpanEvidencePreview', () => {
it('shows error when request fails', async () => {
MockApiClient.addMockResponse({
url: `/organizations/org-slug/issues/group-id/events/recommended/`,
body: {},
statusCode: 500,
});

render(<SpanEvidencePreview groupId="group-id">Hover me</SpanEvidencePreview>);

await userEvent.hover(screen.getByText('Hover me'), {delay: null});

await screen.findByText('Failed to load preview');
expect(await screen.findByText('Failed to load preview')).toBeInTheDocument();
});

it('renders the span evidence correctly when request succeeds', async () => {
Expand Down
Loading