kennethormandy / craft-marketplace

Make your Craft Commerce site a Marketplace, via Stripe
https://plugins.craftcms.com/marketplace
Other
7 stars 0 forks source link

Add automated tests for onboarding accounts #18

Open kennethormandy opened 3 years ago

kennethormandy commented 3 years ago

So far, adding automated tests for accounts hasn’t worked, as we hit a Stripe error that sessions aren’t properly supported in Cypress.

Might prefer to Unit Test the OAuth endpoint, and mock the data that Stripe would be sending back to the token model—that would probably be a good start. We also don’t test the fields within the Craft CMS admin area, so that is another reason why it would be nice to not use E2E tests for this.

Ideally, would like tests for the following cases: