Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions static/app/components/events/autofix/autofixRootCause.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ describe('AutofixRootCause', () => {
await userEvent.click(dropdownTrigger);

// Click the Cursor option in the dropdown
await userEvent.click(await screen.findByText('Send to Cursor Cloud Agent'));
await userEvent.click(await screen.findByText('Send to Cursor'));

expect(JSON.parse(localStorage.getItem('autofix:rootCauseActionPreference')!)).toBe(
'cursor_background_agent'
'cursor:cursor-integration-id'
);
});

Expand Down Expand Up @@ -204,13 +204,13 @@ describe('AutofixRootCause', () => {

localStorage.setItem(
'autofix:rootCauseActionPreference',
JSON.stringify('cursor_background_agent')
JSON.stringify('cursor:cursor-integration-id')
);

render(<AutofixRootCause {...defaultProps} />);

expect(
await screen.findByRole('button', {name: 'Send to Cursor Cloud Agent'})
await screen.findByRole('button', {name: 'Send to Cursor'})
).toBeInTheDocument();

// Verify Seer option is in the dropdown
Expand Down Expand Up @@ -249,6 +249,6 @@ describe('AutofixRootCause', () => {
});
await userEvent.click(dropdownTrigger);

expect(await screen.findByText('Send to Cursor Cloud Agent')).toBeInTheDocument();
expect(await screen.findByText('Send to Cursor')).toBeInTheDocument();
});
});
Loading
Loading