From b462b785cdd96bc33706064aa8c0fbb468ced75b Mon Sep 17 00:00:00 2001 From: Renatho De Carli Rosa Date: Mon, 30 Sep 2024 17:37:52 -0300 Subject: [PATCH] Update discount badge (#94593) --- .../wordpress/upgrade-plan/test/upgrade-plan-details.tsx | 4 ++-- .../wordpress/upgrade-plan/upgrade-plan-details.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/blocks/importer/wordpress/upgrade-plan/test/upgrade-plan-details.tsx b/client/blocks/importer/wordpress/upgrade-plan/test/upgrade-plan-details.tsx index 79d650d273468..2949f23848316 100644 --- a/client/blocks/importer/wordpress/upgrade-plan/test/upgrade-plan-details.tsx +++ b/client/blocks/importer/wordpress/upgrade-plan/test/upgrade-plan-details.tsx @@ -58,7 +58,7 @@ describe( 'UpgradePlanDetails', () => { } ); await waitFor( () => { - expect( screen.getByText( 'One time offer' ) ).toBeInTheDocument(); + expect( screen.getByText( '50% off your first year' ) ).toBeInTheDocument(); // Introductory offer price per month (calculated from the full price). expect( screen.getByText( '12' ) ).toBeInTheDocument(); @@ -87,7 +87,7 @@ describe( 'UpgradePlanDetails', () => { } ); await waitFor( () => { - expect( screen.queryByText( 'One time offer' ) ).toBeNull(); + expect( screen.queryByText( '50% off your first year' ) ).toBeNull(); // Introductory offer price per month (calculated from the full price). expect( screen.queryByText( '12' ) ).toBeNull(); diff --git a/client/blocks/importer/wordpress/upgrade-plan/upgrade-plan-details.tsx b/client/blocks/importer/wordpress/upgrade-plan/upgrade-plan-details.tsx index cf4b3fb943209..c801932fdc01a 100644 --- a/client/blocks/importer/wordpress/upgrade-plan/upgrade-plan-details.tsx +++ b/client/blocks/importer/wordpress/upgrade-plan/upgrade-plan-details.tsx @@ -142,9 +142,9 @@ const PlanPriceOffer = ( props: PlanPriceOfferProps ) => { } ); - const badgeText = hasEnTranslation( 'One time offer' ) - ? translate( 'One time offer' ) - : translate( 'One time discount' ); + const badgeText = hasEnTranslation( '50% off your first year' ) + ? translate( '50% off your first year' ) + : translate( 'One time offer' ); return (