Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

add Jetpack.com "Try it free" connection flow #1007

Merged
merged 4 commits into from
Mar 9, 2018

Conversation

brbrr
Copy link
Contributor

@brbrr brbrr commented Mar 6, 2018

Connect flow starting from Jetpack.com "Try it free" button (hits jetpack/connect/store flow) with logged ou WP.com account

#1000

@brbrr brbrr self-assigned this Mar 6, 2018
@brbrr brbrr requested a review from a team March 6, 2018 15:44
@brbrr brbrr changed the title add Jetpack.com connection spec add Jetpack.com "Try it free" connection flow Mar 7, 2018
Copy link
Contributor

@bsessions85 bsessions85 left a comment

Choose a reason for hiding this comment

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

I am getting an error in this test when I run locally. Perhaps a selector changed?
image

} );

test.it( 'Can log in', () => {
test.it( 'Can log in', function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious as to why you replaced all the arrow functions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've posted it here: #923 (comment)

this in arrow functions did not include mocha context, and sharing variables between tests becomes not possible

@bsessions85
Copy link
Contributor

I re-ran the tests on CircleCI and that test passed but the one I fixed yesterday failed.

@brbrr
Copy link
Contributor Author

brbrr commented Mar 8, 2018

@bsessions85 I've merged master fixes and now tests are passing

@bsessions85
Copy link
Contributor

If I run the test with mocha('./node_modules/.bin/mocha specs-jetpack-calypso/wp-jetpack-connect-spec.js') it won't pass. I think it has to do with the WPCOM version being different. Is there some value I should be setting to run this locally?

image

image

@bsessions85
Copy link
Contributor

Didn't have JETPACKHOST env variable set. LGTM!

@brbrr brbrr merged commit fffa9b0 into master Mar 9, 2018
@brbrr brbrr deleted the add/jetpackcom-try-free-flow branch March 9, 2018 02:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants