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

Extend apiTestHelper to programmatically set users subscription plan #1865

Closed
asnaith opened this issue Jan 19, 2022 · 1 comment · Fixed by #1877
Closed

Extend apiTestHelper to programmatically set users subscription plan #1865

asnaith opened this issue Jan 19, 2022 · 1 comment · Fixed by #1877
Assignees
Labels
Testing Added to issues to signal that it is part of an epic

Comments

@asnaith
Copy link
Member

asnaith commented Jan 19, 2022

Summary

At the moment we have no ability to set a user's subscription plan level at the beginning of a test.

Whilst the free plan is default and we use a unique user per test session we still need to put this in place because if a test fails after a user has been changed to a different plan then non of the automatic retries will work either.

In addition to this, it would be great if we could also programmatically set a user to a standard or premium plan too. If this is possible it would help make future downgrade path tests more efficient.

Acceptance Critieria:

  • Add new functionality to apiTestHelper.ts / commands.ts that gives us the ability to set the subscription plan programmatically
@asnaith asnaith added the Testing Added to issues to signal that it is part of an epic label Jan 19, 2022
@Tbaut Tbaut self-assigned this Jan 24, 2022
@Tbaut
Copy link
Collaborator

Tbaut commented Jan 24, 2022

While I don't think we can achieve what the issue is about, we can at least make sure the user is on the free plan, or set it to it. Because there is no payment associated to this move, and hence, no need for crypto or registered card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing Added to issues to signal that it is part of an epic
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants