Skip to content

Commit

Permalink
AT: adds test mentioning plugins and themes in /plans pages (Automatt…
Browse files Browse the repository at this point in the history
…ic#14763)

* adds test mentioning plugins and themes in /plans pages

* check for abtest before using method
  • Loading branch information
rralian authored Jun 5, 2017
1 parent fb4c82f commit 54d0562
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
8 changes: 8 additions & 0 deletions client/lib/abtest/active-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ module.exports = {
},
defaultVariation: 'hideSurveyStep',
},
businessPlanDescriptionAT: {
datestamp: '20170605',
variations: {
original: 50,
pluginsAndThemes: 50,
},
defaultVariation: 'original',
},
presaleChatButton: {
datestamp: '20170328',
variations: {
Expand Down
16 changes: 14 additions & 2 deletions client/lib/plans/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,25 @@ export const PLANS_LIST = {
getStoreSlug: () => PLAN_BUSINESS,
availableFor: ( plan ) => includes( [ PLAN_FREE, PLAN_PERSONAL, PLAN_PREMIUM ], plan ),
getPathSlug: () => 'business',
getDescription: () => i18n.translate( '{{strong}}Best for Small Business:{{/strong}} Power your' +
getDescription: ( abtest ) => {
if ( abtest && abtest( 'businessPlanDescriptionAT' ) === 'pluginsAndThemes' ) {
return i18n.translate( '{{strong}}Best for Small Business:{{/strong}} Power your' +
' business website with custom plugins and themes, unlimited premium and business theme templates,' +
' Google Analytics support, unlimited' +
' storage, and the ability to remove WordPress.com branding.', {
components: {
strong: <strong className="plans__features plan-features__targeted-description-heading" />
}
} );
}
return i18n.translate( '{{strong}}Best for Small Business:{{/strong}} Power your' +
' business website with unlimited premium and business theme templates, Google Analytics support, unlimited' +
' storage, and the ability to remove WordPress.com branding.', {
components: {
strong: <strong className="plans__features plan-features__targeted-description-heading" />
}
} ),
} );
},
getFeatures: () => compact( [ // pay attention to ordering, shared features should align on /plan page
FEATURE_CUSTOM_DOMAIN,
FEATURE_JETPACK_ESSENTIAL,
Expand Down

0 comments on commit 54d0562

Please sign in to comment.