Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
roaga committed Feb 2, 2025
1 parent 07213a2 commit 0ce768b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
17 changes: 13 additions & 4 deletions static/app/components/events/autofix/autofixSteps.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,18 @@ describe('AutofixSteps', () => {
causes: [
{
id: 'cause1',
description: 'Root cause 1',
title: 'cause 1',
code_context: [],
root_cause_reproduction: [
{
title: 'step 1',
code_snippet_and_analysis: 'details',
is_most_important_event: true,
relevant_code_file: {
file_path: 'file.py',
repo_name: 'owner/repo',
},
timeline_item_type: 'code',
},
],
},
],
selection: null,
Expand All @@ -58,7 +67,7 @@ describe('AutofixSteps', () => {
it('renders steps correctly', () => {
render(<AutofixSteps {...defaultProps} />);

expect(screen.getByText('Root cause 1')).toBeInTheDocument();
expect(screen.getByText('step 1')).toBeInTheDocument();
expect(screen.getByText('Find Fix')).toBeInTheDocument();
});

Expand Down
17 changes: 0 additions & 17 deletions tests/js/fixtures/autofixRootCauseCodeContext.ts

This file was deleted.

0 comments on commit 0ce768b

Please sign in to comment.