Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetpack: monthly plans test #11704

Merged
merged 5 commits into from
Mar 6, 2017
Merged

Jetpack: monthly plans test #11704

merged 5 commits into from
Mar 6, 2017

Conversation

johnHackworth
Copy link
Contributor

Fixes #11607

TLDR: We are going to run an a/b test removing the jetpack monthly plans.

This PR implements it.

How to test:
0. First, go to http://calypso.localhost:3000/plans/ and select a jetpack site ... make sure everything looks right. Then connect that site and make sure everything works fine in the plans selection screen ( you will need a site without any purchased plan so you can see the plans step there)

  1. Now let's start the test. Open the developer tools and run this in the console: localStorage.setItem( 'ABTests', '{"jetpackPlansNoMonthly_20170302":"hideMonthly"}' );

  2. Go to http://calypso.localhost:3000/plans/ and select a jetpack site that doesn't have any paid plan. You should see something like this:
    image

  3. Disconnect that site and connect it again. In the plans selection step you should see:
    image

  4. Now purchase a plan with that site (or select any site with an already purchased plan). Go back to http://calypso.localhost:3000/plans/[site-slug]. This time, you should see the monthly plans selector:
    image
    Make sure you can see the monthly version of the plans

  5. Now choose a WordPress.com site and go to the plans page again. Make sure nothing in this PR interfers with dotcom plans

@johnHackworth johnHackworth added .org Plans Jetpack [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Mar 2, 2017
@johnHackworth johnHackworth self-assigned this Mar 2, 2017
@matticbot
Copy link
Contributor

@matticbot matticbot added the [Size] M Medium sized issue label Mar 2, 2017
Copy link
Member

@tyxla tyxla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tests well for me 👍

One minor thing that I've noticed: if you try to access /jetpack/connect/plans/monthly/$site with the test enabled (hideMonthly) for a free site, you will see reduced prices by 12 times, because it calculates the monthly price based on the yearly price / 12. This, however, will only happen if the user specifically visits this URL, because the monthly/yearly tabs are no longer visible (as expected).

showMonthy: 50,
hideMonthly: 50
},
defaultVariation: 'showMonthy',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a typo on various locations: showMonthy instead of showMonthly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

damn autocomplete ... make the typo once, propagate it forever

@johnHackworth
Copy link
Contributor Author

good catch @tyxla . I handled that case in a new commit

@johnHackworth johnHackworth merged commit 9d2ece8 into master Mar 6, 2017
@johnHackworth johnHackworth deleted the add/jetpack-monthly-test branch March 6, 2017 13:40
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Mar 6, 2017
@johnHackworth johnHackworth changed the title Jetpack: Remove monthly plans test Jetpack: monthly plans test Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Jetpack [Size] M Medium sized issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants