diff --git a/static/app/components/events/autofix/v3/nextStep.spec.tsx b/static/app/components/events/autofix/v3/nextStep.spec.tsx index 5efc1cfecc76f8..cd66b2dee30c7f 100644 --- a/static/app/components/events/autofix/v3/nextStep.spec.tsx +++ b/static/app/components/events/autofix/v3/nextStep.spec.tsx @@ -213,6 +213,25 @@ describe('SeerDrawerNextStep', () => { expect(autofix.startStep).toHaveBeenCalledWith('solution', 1); }); + it('shows coding agent dropdown with Add Integration CTA when no integrations exist', async () => { + const autofix = makeAutofix(); + render( + + ); + await userEvent.click( + await screen.findByRole('button', {name: 'More code fix options'}) + ); + const addIntegrationLink = screen.getByRole('button', {name: 'Add Integration'}); + expect(addIntegrationLink).toHaveAttribute( + 'href', + '/settings/org-slug/integrations/?category=coding%20agent' + ); + }); + it('shows coding agent dropdown when integrations exist', async () => { MockApiClient.addMockResponse({ url: '/organizations/org-slug/integrations/coding-agents/', diff --git a/static/app/components/events/autofix/v3/nextStep.tsx b/static/app/components/events/autofix/v3/nextStep.tsx index 02f135ff3ac61c..5e3375cad8a391 100644 --- a/static/app/components/events/autofix/v3/nextStep.tsx +++ b/static/app/components/events/autofix/v3/nextStep.tsx @@ -342,9 +342,10 @@ function NextStepTemplate({ - {codingAgentOptions?.length ? ( + {codingAgentIntegrations === undefined ? null : ( (