diff --git a/static/app/components/events/autofix/autofixSteps.spec.tsx b/static/app/components/events/autofix/autofixSteps.spec.tsx index fe6fb69d3da21e..31755c3297b85f 100644 --- a/static/app/components/events/autofix/autofixSteps.spec.tsx +++ b/static/app/components/events/autofix/autofixSteps.spec.tsx @@ -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, @@ -58,7 +67,7 @@ describe('AutofixSteps', () => { it('renders steps correctly', () => { render(); - expect(screen.getByText('Root cause 1')).toBeInTheDocument(); + expect(screen.getByText('step 1')).toBeInTheDocument(); expect(screen.getByText('Find Fix')).toBeInTheDocument(); }); diff --git a/tests/js/fixtures/autofixRootCauseCodeContext.ts b/tests/js/fixtures/autofixRootCauseCodeContext.ts deleted file mode 100644 index cbd0b14a6fd254..00000000000000 --- a/tests/js/fixtures/autofixRootCauseCodeContext.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { AutofixRootCauseCodeContext } from 'sentry/components/events/autofix/types'; - -export function AutofixRootCauseCodeContext( - params: Partial = {} -): AutofixRootCauseCodeContext { - return { - id: '200', - title: 'This is the title of a relevant code snippet.', - description: 'This is the description of a relevant code snippet.', - snippet: { - file_path: 'src/file.py', - snippet: 'x = 1 + 1;', - repo_name: 'owner/repo' - }, - ...params, - }; -}