Skip to content

Commit

Permalink
Update discount badge (#94593)
Browse files Browse the repository at this point in the history
  • Loading branch information
renatho authored Sep 30, 2024
1 parent a78ea20 commit b462b78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<UpgradePlanPrice billingTimeFrame={ billingTimeFrame }>
Expand Down

0 comments on commit b462b78

Please sign in to comment.