diff --git a/static/app/views/organizationStats/index.spec.tsx b/static/app/views/organizationStats/index.spec.tsx index 33836e787d531e..6108fc4a12e869 100644 --- a/static/app/views/organizationStats/index.spec.tsx +++ b/static/app/views/organizationStats/index.spec.tsx @@ -460,9 +460,9 @@ describe('OrganizationStats', () => { expect(screen.getByRole('option', {name: 'Profiles'})).toBeInTheDocument(); }); - it('shows Seer categories when seer-billing feature flag is enabled', async () => { + it('shows Seer categories for old usage-based Seer plan (seer-added)', async () => { const newOrg = OrganizationFixture({ - features: ['team-insights', 'seer-billing'], + features: ['team-insights', 'seer-billing', 'seer-added'], }); render(, { @@ -488,6 +488,20 @@ describe('OrganizationStats', () => { expect(screen.queryByRole('option', {name: 'Issue Scans'})).not.toBeInTheDocument(); }); + it('does not show Seer categories for seat-based Seer plan', async () => { + const newOrg = OrganizationFixture({ + features: ['team-insights', 'seer-billing', 'seat-based-seer-enabled'], + }); + + render(, { + organization: newOrg, + }); + + await userEvent.click(await screen.findByText('Category')); + expect(screen.queryByRole('option', {name: 'Issue Fixes'})).not.toBeInTheDocument(); + expect(screen.queryByRole('option', {name: 'Issue Scans'})).not.toBeInTheDocument(); + }); + it('shows size analysis when billing feature flag is enabled', async () => { const newOrg = OrganizationFixture({ features: ['size-analysis-billing'], diff --git a/static/app/views/organizationStats/index.tsx b/static/app/views/organizationStats/index.tsx index df06bc0fbb0356..36579434167d75 100644 --- a/static/app/views/organizationStats/index.tsx +++ b/static/app/views/organizationStats/index.tsx @@ -263,7 +263,10 @@ export class OrganizationStatsInner extends Component { return !organization.features.includes('spans-usage-tracking'); } if ([DataCategory.SEER_AUTOFIX, DataCategory.SEER_SCANNER].includes(opt.value)) { - return organization.features.includes('seer-billing'); + return ( + organization.features.includes('seer-billing') && + organization.features.includes('seer-added') + ); } if ([DataCategory.LOG_BYTE].includes(opt.value)) { return organization.features.includes('ourlogs-enabled');