You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
kennethormandy
changed the title
Add tests for onboarding accounts
Add automated tests for onboarding accounts
May 19, 2021
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:
elementUid
The text was updated successfully, but these errors were encountered: