#derand1_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1283218681719164938
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Not sure if i should interact with the account link and external onboarding form. Would result in flaky tests if stripe every updates the flow
hello! Why do you want to test the account link and external onboarding form?
I want to create a verified Stripe in my test case, because I have side effects I want to test after the user completes the form and the verficiation is pending
I'm okay with not being able to test this in an e2e environment, i can just create an integration test and mock stripe responses.
But I just wanted to know if there is a way to do this? Or what you think best practice is?
like what you said, we don't recommend attempting to do an e2e test based off Stripe's UX/UI because it might change anytime, you would want to mock Stripe responses
Is there a way to create an immediately verified express account through the API?
not for express accounts. The connected account still needs to agree to the TOS and that can't be done via the API. Rather than trying to create an immediately verified express account through the API, can you use one which is already verified?
Oh I havent considered that. I guess that would be a bit messy, but that's a good option.
Thanks for your help!
you might want to put in a check / alert to make sure that the account is still verified before you actually run the tests
Thanks i appreciate it