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

Add automated tests for onboarding accounts #18

Open
kennethormandy opened this issue May 19, 2021 · 0 comments
Open

Add automated tests for onboarding accounts #18

kennethormandy opened this issue May 19, 2021 · 0 comments

Comments

@kennethormandy
Copy link
Owner

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:

  • From a custom front-end, connect a new account as a User
  • From a custom front-end, connect a new account and save to a different elementUid
    • Assert this saves as expected
    • Assert it doesn’t save on the User account
@kennethormandy kennethormandy changed the title Add tests for onboarding accounts Add automated tests for onboarding accounts May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant