#op84_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/1270289380300554332
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Frontend interfaces, like Stripe Checkout or the Payment Element, have security measures in place that prevent automated testing, and Stripe APIs are rate limited.
You can't perform automated testing on Stripe elements
reference: https://docs.stripe.com/automated-testing
ok so what you are saying is that every app that uses stripe elements is not fully tested?
๐ taking over for my colleague. Let me catch up.
you don't have to put automated tests in place for elements since we already have that covered for you
ok i hope so but how does one test a full checkout process then? it would stop on the payment step
you just need to test it manually once e2e
like what exactly are you trying to test? (I mean after the payment)
i want to test the whole checkout process - if the flow still works.. thats not that crazy - right?
you can fake the payment step
basically if the confirmation comes through
mocking services is a very common practice in testing
yes but this also has to do with user input..
in testing you can mock these as well
i saw there is a stripe-mock docker container.. would that help with elements?
like mocking a failing scenario and a successful one
the stripe-mock hasn't been maintained for a quite sometime
you can use it but it's upon your discretion
hm sounds like a lot of work.. i had elements tests running for quite a wile but now it broke.. somehow cant fint the frame anymore