From 73a32daa2dec951cb7b84ef931ea3c9f3435cadc Mon Sep 17 00:00:00 2001 From: ajay-sentry <159853603+ajay-sentry@users.noreply.github.com> Date: Thu, 19 Dec 2024 08:28:12 -0800 Subject: [PATCH] fix: Copy when changing plan from free plan (#3594) --- .../UpgradeForm/UpdateBlurb/UpdateBlurb.test.tsx | 4 ++-- .../UpgradePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.test.tsx b/src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.test.tsx index dd2bc9abb0..944652bceb 100644 --- a/src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.test.tsx +++ b/src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.test.tsx @@ -113,7 +113,7 @@ describe('UpdateBlurb', () => { const seatsBlurb = await screen.findByText( 'You are changing seats from 2 to [10]' ) - const billingBlurb = await screen.findByText( + const billingBlurb = screen.queryByText( 'You are changing your billing cycle from Monthly to [Annual]' ) const immediateUpdate = await screen.findByText( @@ -121,7 +121,7 @@ describe('UpdateBlurb', () => { ) expect(planBlurb).toBeInTheDocument() expect(seatsBlurb).toBeInTheDocument() - expect(billingBlurb).toBeInTheDocument() + expect(billingBlurb).not.toBeInTheDocument() expect(immediateUpdate).toBeInTheDocument() }) }) diff --git a/src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.tsx b/src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.tsx index 90ec3eaacd..829bc8fc99 100644 --- a/src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.tsx +++ b/src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.tsx @@ -48,7 +48,7 @@ const UpdateBlurb = ({ {diffSeats && (
  • {`You are changing seats from ${currentPlan?.planUserCount} to [${seats}]`}
  • )} - {diffBillingType && ( + {diffBillingType && !currentIsFree && (
  • {`You are changing your billing cycle from ${ currentIsAnnual ? 'Annual' : 'Monthly' } to [${currentIsAnnual ? 'Monthly' : 'Annual'}]`}