#derand1_best-practices

1 messages ¡ Page 1 of 1 (latest)

frigid robinBOT
#

👋 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.

eager mesa
#

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

spring token
#

hello! Why do you want to test the account link and external onboarding form?

eager mesa
#

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?

spring token
#

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

eager mesa
#

Is there a way to create an immediately verified express account through the API?

spring token
#

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?

eager mesa
#

Oh I havent considered that. I guess that would be a bit messy, but that's a good option.

#

Thanks for your help!

spring token
#

you might want to put in a check / alert to make sure that the account is still verified before you actually run the tests

eager mesa
#

Thanks i appreciate it