123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707 |
- import {OrganizationFixture} from 'sentry-fixture/organization';
- import {CustomerUsageFixture} from 'getsentry-test/fixtures/customerUsage';
- import {MetricHistoryFixture} from 'getsentry-test/fixtures/metricHistory';
- import {PlanDetailsLookupFixture} from 'getsentry-test/fixtures/planDetailsLookup';
- import {SubscriptionFixture} from 'getsentry-test/fixtures/subscription';
- import {UsageTotalFixture} from 'getsentry-test/fixtures/usageTotal';
- import {render, screen} from 'sentry-test/reactTestingLibrary';
- import {textWithMarkupMatcher} from 'sentry-test/utils';
- import {DataCategory} from 'sentry/types/core';
- import {GIGABYTE} from 'getsentry/constants';
- import SubscriptionStore from 'getsentry/stores/subscriptionStore';
- import UsageAlert from 'getsentry/views/subscriptionPage/usageAlert';
- describe('Subscription > UsageAlert', function () {
- const emptyUsage = CustomerUsageFixture();
- it('does not render without overage', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({organization, canTrial: false});
- render(<UsageAlert subscription={subscription} usage={emptyUsage} />, {});
- expect(screen.queryByTestId('usage-alert')).not.toBeInTheDocument();
- });
- it('renders request add events CTA if am1 business and a member', function () {
- const organization = OrganizationFixture({access: []});
- const subscription = SubscriptionFixture({
- organization,
- plan: 'am1_business',
- canSelfServe: true,
- });
- SubscriptionStore.set(organization.slug, subscription);
- render(<UsageAlert subscription={subscription} usage={emptyUsage} />, {
- organization,
- });
- expect(screen.queryByTestId('usage-alert')).not.toBeInTheDocument();
- expect(screen.getByLabelText('Request Additional Quota')).toBeInTheDocument();
- });
- it('renders an upgrade CTA for mm2_b usage exceeded', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({
- organization,
- plan: 'mm2_b_100k',
- usageExceeded: true,
- // TODO: Add "categories" when mmx plans have error BillingMetricHistory
- });
- render(<UsageAlert subscription={subscription} usage={emptyUsage} />, {
- organization,
- });
- expect(screen.getByTestId('usage-exceeded-alert')).toBeInTheDocument();
- expect(screen.getByText('Usage Exceeded')).toBeInTheDocument();
- expect(
- screen.getByText(textWithMarkupMatcher(/errors capacity/))
- ).toBeInTheDocument();
- expect(screen.queryByText('grace period')).not.toBeInTheDocument();
- expect(screen.getByLabelText('Upgrade Plan')).toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('projected-overage-alert')).not.toBeInTheDocument();
- });
- it('renders am1_f usage exceeded errors with trial', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({
- organization,
- plan: 'am1_f',
- usageExceeded: false,
- categories: {
- errors: MetricHistoryFixture({usageExceeded: true}),
- },
- canTrial: true,
- });
- SubscriptionStore.set(organization.slug, subscription);
- render(<UsageAlert subscription={subscription} usage={emptyUsage} />, {
- organization,
- });
- expect(screen.getByTestId('usage-exceeded-alert')).toBeInTheDocument();
- expect(screen.getByText('Usage Exceeded')).toBeInTheDocument();
- expect(
- screen.getByText(textWithMarkupMatcher(/errors capacity/))
- ).toBeInTheDocument();
- expect(screen.getByLabelText('Start Trial')).toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('projected-overage-alert')).not.toBeInTheDocument();
- });
- it('renders am1 usage exceeded errors and transactions request add events', function () {
- const organization = OrganizationFixture({access: []});
- const subscription = SubscriptionFixture({
- organization,
- plan: 'am1_team',
- usageExceeded: false,
- categories: {
- errors: MetricHistoryFixture({
- category: DataCategory.ERRORS,
- usageExceeded: true,
- }),
- transactions: MetricHistoryFixture({
- usageExceeded: true,
- category: DataCategory.TRANSACTIONS,
- }),
- },
- });
- SubscriptionStore.set(organization.slug, subscription);
- render(<UsageAlert subscription={subscription} usage={emptyUsage} />, {
- organization,
- });
- expect(screen.getByTestId('usage-exceeded-alert')).toBeInTheDocument();
- expect(screen.getByText('Usage Exceeded')).toBeInTheDocument();
- expect(
- screen.getByText(textWithMarkupMatcher(/errors and transactions capacity/))
- ).toBeInTheDocument();
- expect(screen.getByLabelText('Request Additional Quota')).toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('projected-overage-alert')).not.toBeInTheDocument();
- });
- it('renders am2 usage exceeded errors and transactions request add events', function () {
- const organization = OrganizationFixture({access: []});
- const subscription = SubscriptionFixture({
- organization,
- plan: 'am2_team',
- usageExceeded: false,
- categories: {
- errors: MetricHistoryFixture({
- usageExceeded: true,
- category: DataCategory.ERRORS,
- }),
- transactions: MetricHistoryFixture({
- usageExceeded: true,
- category: DataCategory.ATTACHMENTS,
- }),
- },
- });
- SubscriptionStore.set(organization.slug, subscription);
- render(<UsageAlert subscription={subscription} usage={emptyUsage} />, {
- organization,
- });
- expect(screen.getByTestId('usage-exceeded-alert')).toBeInTheDocument();
- expect(screen.getByText('Usage Exceeded')).toBeInTheDocument();
- expect(
- screen.getByText(textWithMarkupMatcher(/errors and performance units capacity/))
- ).toBeInTheDocument();
- expect(screen.getByLabelText('Request Additional Quota')).toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('projected-overage-alert')).not.toBeInTheDocument();
- });
- it('renders am1 usage exceeded errors and attachments add events', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({
- organization,
- plan: 'am1_team',
- usageExceeded: false,
- categories: {
- errors: MetricHistoryFixture({
- usageExceeded: true,
- category: DataCategory.ERRORS,
- }),
- transactions: MetricHistoryFixture({
- usageExceeded: false,
- category: DataCategory.TRANSACTIONS,
- }),
- attachments: MetricHistoryFixture({
- usageExceeded: true,
- category: DataCategory.ATTACHMENTS,
- }),
- },
- });
- SubscriptionStore.set(organization.slug, subscription);
- render(<UsageAlert subscription={subscription} usage={emptyUsage} />, {
- organization,
- });
- expect(screen.getByTestId('usage-exceeded-alert')).toBeInTheDocument();
- expect(screen.getByText('Usage Exceeded')).toBeInTheDocument();
- expect(
- screen.getByText(textWithMarkupMatcher(/errors and attachments capacity/))
- ).toBeInTheDocument();
- expect(screen.getByLabelText('Increase Reserved Limits')).toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('projected-overage-alert')).not.toBeInTheDocument();
- });
- it('renders am1 all data categories exceeded request upgrade', function () {
- const organization = OrganizationFixture({access: []});
- const plan_id = 'am1_f';
- const planDetails = PlanDetailsLookupFixture(plan_id)!;
- const subCategories = {};
- planDetails.categories.forEach(category => {
- // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
- subCategories[category] = MetricHistoryFixture({
- usageExceeded: true,
- category,
- });
- });
- const subscription = SubscriptionFixture({
- organization,
- plan: plan_id,
- usageExceeded: true,
- categories: subCategories,
- canTrial: false,
- });
- SubscriptionStore.set(organization.slug, subscription);
- render(<UsageAlert subscription={subscription} usage={emptyUsage} />, {
- organization,
- });
- expect(screen.getByTestId('usage-exceeded-alert')).toBeInTheDocument();
- expect(screen.getByText('Usage Exceeded')).toBeInTheDocument();
- expect(
- screen.getByText(
- textWithMarkupMatcher(
- /errors, transactions, replays, cron monitors, and attachments capacity/
- )
- )
- ).toBeInTheDocument();
- expect(screen.getByLabelText('Request Upgrade')).toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('projected-overage-alert')).not.toBeInTheDocument();
- });
- it('renders am2 all data categories exceeded request upgrade', function () {
- const organization = OrganizationFixture({access: []});
- const plan_id = 'am2_f';
- const planDetails = PlanDetailsLookupFixture(plan_id)!;
- const subCategories = {};
- planDetails.categories.forEach(category => {
- // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
- subCategories[category] = MetricHistoryFixture({
- usageExceeded: true,
- category,
- });
- });
- const subscription = SubscriptionFixture({
- organization,
- plan: plan_id,
- usageExceeded: true,
- categories: subCategories,
- canTrial: false,
- });
- SubscriptionStore.set(organization.slug, subscription);
- render(<UsageAlert subscription={subscription} usage={emptyUsage} />, {
- organization,
- });
- expect(screen.getByTestId('usage-exceeded-alert')).toBeInTheDocument();
- expect(screen.getByText('Usage Exceeded')).toBeInTheDocument();
- expect(
- screen.getByText(
- textWithMarkupMatcher(
- /errors, performance units, replays, cron monitors, and attachments capacity/
- )
- )
- ).toBeInTheDocument();
- expect(screen.getByLabelText('Request Upgrade')).toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('projected-overage-alert')).not.toBeInTheDocument();
- });
- it('renders am3 all data categories exceeded request upgrade', function () {
- const organization = OrganizationFixture({access: []});
- const plan_id = 'am3_f';
- const planDetails = PlanDetailsLookupFixture(plan_id)!;
- const subCategories = {};
- planDetails.categories.forEach(category => {
- // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
- subCategories[category] = MetricHistoryFixture({
- usageExceeded: true,
- category,
- });
- });
- const subscription = SubscriptionFixture({
- organization,
- plan: plan_id,
- usageExceeded: true,
- categories: subCategories,
- canTrial: false,
- });
- SubscriptionStore.set(organization.slug, subscription);
- render(<UsageAlert subscription={subscription} usage={emptyUsage} />, {
- organization,
- });
- expect(screen.getByTestId('usage-exceeded-alert')).toBeInTheDocument();
- expect(screen.getByText('Usage Exceeded')).toBeInTheDocument();
- expect(
- screen.getByText(
- textWithMarkupMatcher(
- /errors, replays, spans, cron monitors, and attachments capacity/
- )
- )
- ).toBeInTheDocument();
- expect(screen.getByLabelText('Request Upgrade')).toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('projected-overage-alert')).not.toBeInTheDocument();
- });
- describe('grace period', function () {
- it('renders for grace period', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({organization, canTrial: false});
- render(
- <UsageAlert
- subscription={{...subscription, isGracePeriod: true}}
- usage={emptyUsage}
- />,
- {organization}
- );
- expect(screen.getByTestId('grace-period-alert')).toBeInTheDocument();
- expect(screen.getByText('Grace Period')).toBeInTheDocument();
- expect(screen.getByLabelText('Upgrade Plan')).toBeInTheDocument();
- expect(screen.queryByTestId('usage-exceeded-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('projected-overage-alert')).not.toBeInTheDocument();
- });
- it('renders for grace period and transactions exceeded', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({organization, canTrial: false});
- render(
- <UsageAlert
- subscription={{
- ...subscription,
- isGracePeriod: true,
- categories: {
- transactions: MetricHistoryFixture({usageExceeded: true}),
- },
- }}
- usage={emptyUsage}
- />,
- {organization}
- );
- expect(screen.getByTestId('grace-period-alert')).toBeInTheDocument();
- expect(screen.getByText('Grace Period')).toBeInTheDocument();
- expect(screen.getAllByLabelText('Upgrade Plan')).toHaveLength(2);
- expect(screen.getByTestId('usage-exceeded-alert')).toBeInTheDocument();
- expect(
- screen.getByText(textWithMarkupMatcher(/transactions capacity/))
- ).toBeInTheDocument();
- expect(screen.queryByTestId('projected-overage-alert')).not.toBeInTheDocument();
- });
- it('renders for am2 grace period and transactions exceeded', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({
- plan: 'am2_f',
- organization,
- canTrial: false,
- });
- render(
- <UsageAlert
- subscription={{
- ...subscription,
- isGracePeriod: true,
- categories: {
- transactions: MetricHistoryFixture({usageExceeded: true}),
- },
- }}
- usage={emptyUsage}
- />,
- {organization}
- );
- expect(screen.getByTestId('grace-period-alert')).toBeInTheDocument();
- expect(screen.getByText('Grace Period')).toBeInTheDocument();
- expect(screen.getAllByLabelText('Upgrade Plan')).toHaveLength(2);
- expect(screen.getByTestId('usage-exceeded-alert')).toBeInTheDocument();
- expect(
- screen.getByText(textWithMarkupMatcher(/performance units capacity/))
- ).toBeInTheDocument();
- expect(screen.queryByTestId('projected-overage-alert')).not.toBeInTheDocument();
- });
- it('does not render upgrade buttons if cannot self-serve', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({organization, canTrial: false});
- render(
- <UsageAlert
- subscription={{
- ...subscription,
- canSelfServe: false,
- categories: {
- errors: MetricHistoryFixture({usageExceeded: true}),
- transactions: MetricHistoryFixture({
- category: DataCategory.TRANSACTIONS,
- }),
- attachments: MetricHistoryFixture({
- category: DataCategory.ATTACHMENTS,
- }),
- },
- }}
- usage={emptyUsage}
- />,
- {organization}
- );
- expect(screen.getByTestId('usage-exceeded-alert')).toBeInTheDocument();
- expect(screen.queryByLabelText('Upgrade Plan')).not.toBeInTheDocument();
- });
- });
- describe('projected overage', function () {
- it('renders am1 usage exceeded errors with projected overage', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({organization, canTrial: false});
- render(
- <UsageAlert
- subscription={{
- ...subscription,
- plan: 'am1_f',
- usageExceeded: false,
- categories: {
- errors: MetricHistoryFixture({
- usageExceeded: true,
- prepaid: 5_000,
- reserved: 5_000,
- }),
- },
- }}
- usage={CustomerUsageFixture({
- totals: {
- errors: UsageTotalFixture({accepted: 3_000, projected: 7_000}),
- },
- })}
- />,
- {organization}
- );
- expect(screen.getByTestId('usage-exceeded-alert')).toBeInTheDocument();
- expect(screen.getByText('Usage Exceeded')).toBeInTheDocument();
- expect(
- screen.getByText(textWithMarkupMatcher(/errors capacity/))
- ).toBeInTheDocument();
- expect(screen.getByLabelText('Upgrade Plan')).toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('projected-overage-alert')).not.toBeInTheDocument();
- });
- it('renders am1 with projected errors overage', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({organization, canTrial: false});
- render(
- <UsageAlert
- subscription={{
- ...subscription,
- plan: 'am1_f',
- reservedErrors: 5000,
- categories: {
- errors: MetricHistoryFixture({prepaid: 5_000, reserved: 5_000}),
- },
- }}
- usage={CustomerUsageFixture({
- totals: {
- errors: UsageTotalFixture({accepted: 3_000, projected: 10_000}),
- },
- })}
- />,
- {organization}
- );
- expect(screen.getByTestId('projected-overage-alert')).toBeInTheDocument();
- expect(screen.getByText('Projected Overage')).toBeInTheDocument();
- expect(screen.getByText(/will need at least 10K errors/)).toBeInTheDocument();
- expect(screen.getByLabelText('Upgrade Plan')).toBeInTheDocument();
- expect(screen.queryByTestId('usage-exceeded-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- });
- it('does not render without projected errors overage', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({organization, canTrial: false});
- render(
- <UsageAlert
- subscription={{
- ...subscription,
- plan: 'am1_f',
- categories: {
- errors: MetricHistoryFixture({prepaid: 100_000, reserved: 100_000}),
- },
- }}
- usage={CustomerUsageFixture({
- totals: {
- errors: UsageTotalFixture({accepted: 3_000, projected: 7_000}),
- },
- })}
- />,
- {organization}
- );
- expect(screen.queryByTestId('usage-alert')).not.toBeInTheDocument();
- });
- it('renders am1 with projected errors and transactions overage', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({organization, canTrial: false});
- render(
- <UsageAlert
- subscription={{
- ...subscription,
- categories: {
- errors: MetricHistoryFixture({
- prepaid: 5_000,
- reserved: 5_000,
- category: DataCategory.ERRORS,
- }),
- transactions: MetricHistoryFixture({
- category: DataCategory.TRANSACTIONS,
- prepaid: 10_000,
- reserved: 10_000,
- }),
- attachments: MetricHistoryFixture({
- category: DataCategory.ATTACHMENTS,
- }),
- },
- }}
- usage={CustomerUsageFixture({
- totals: {
- errors: UsageTotalFixture({accepted: 1_000, projected: 10_000}),
- transactions: UsageTotalFixture({accepted: 3_000, projected: 20_000}),
- },
- })}
- />,
- {organization}
- );
- expect(screen.getByTestId('projected-overage-alert')).toBeInTheDocument();
- expect(screen.getByText('Projected Overage')).toBeInTheDocument();
- expect(
- screen.getByText(/will need at least 10K errors and 20K transactions/)
- ).toBeInTheDocument();
- expect(screen.getByLabelText('Upgrade Plan')).toBeInTheDocument();
- expect(screen.queryByTestId('usage-exceeded-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- });
- it('renders am2 with projected errors and transactions overage', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({
- plan: 'am2_f',
- organization,
- canTrial: false,
- });
- render(
- <UsageAlert
- subscription={{
- ...subscription,
- categories: {
- errors: MetricHistoryFixture({
- prepaid: 5_000,
- reserved: 5_000,
- category: DataCategory.ERRORS,
- }),
- transactions: MetricHistoryFixture({
- category: DataCategory.TRANSACTIONS,
- prepaid: 10_000,
- reserved: 10_000,
- }),
- attachments: MetricHistoryFixture({
- category: DataCategory.ATTACHMENTS,
- }),
- },
- }}
- usage={CustomerUsageFixture({
- totals: {
- errors: UsageTotalFixture({accepted: 1_000, projected: 10_000}),
- transactions: UsageTotalFixture({accepted: 3_000, projected: 20_000}),
- },
- })}
- />,
- {organization}
- );
- expect(screen.getByTestId('projected-overage-alert')).toBeInTheDocument();
- expect(screen.getByText('Projected Overage')).toBeInTheDocument();
- expect(
- screen.getByText(/will need at least 10K errors and 20K performance units/)
- ).toBeInTheDocument();
- expect(screen.getByLabelText('Upgrade Plan')).toBeInTheDocument();
- expect(screen.queryByTestId('usage-exceeded-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- });
- it('renders am1 with projected attachments overage', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({organization, canTrial: false});
- render(
- <UsageAlert
- subscription={{
- ...subscription,
- plan: 'am1_f',
- categories: {
- attachments: MetricHistoryFixture({prepaid: 1, reserved: 1}),
- },
- }}
- usage={CustomerUsageFixture({
- totals: {
- attachments: UsageTotalFixture({
- accepted: GIGABYTE * 0.5,
- projected: GIGABYTE * 5,
- }),
- },
- })}
- />,
- {organization}
- );
- expect(screen.getByTestId('projected-overage-alert')).toBeInTheDocument();
- expect(screen.getByText('Projected Overage')).toBeInTheDocument();
- expect(
- screen.getByText(/will need at least 5 GB of attachments/)
- ).toBeInTheDocument();
- expect(screen.getByLabelText('Upgrade Plan')).toBeInTheDocument();
- expect(screen.queryByTestId('usage-exceeded-alert')).not.toBeInTheDocument();
- expect(screen.queryByTestId('grace-period-alert')).not.toBeInTheDocument();
- });
- it('does not render without projected attachments overage', function () {
- const organization = OrganizationFixture({access: ['org:billing']});
- const subscription = SubscriptionFixture({organization, canTrial: false});
- render(
- <UsageAlert
- subscription={{
- ...subscription,
- plan: 'am1_f',
- categories: {
- attachments: MetricHistoryFixture({prepaid: 5, reserved: 5}),
- },
- }}
- usage={CustomerUsageFixture({
- totals: {
- attachments: UsageTotalFixture({
- accepted: GIGABYTE * 40,
- projected: GIGABYTE * 4,
- }),
- },
- })}
- />,
- {organization}
- );
- expect(screen.queryByTestId('usage-alert')).not.toBeInTheDocument();
- });
- });
- });
|