#op84_best-practices

1 messages ยท Page 1 of 1 (latest)

ruby sparrowBOT
#

๐Ÿ‘‹ 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.

hybrid salmon
#

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

ruby sparrowBOT
crude acorn
#

ok so what you are saying is that every app that uses stripe elements is not fully tested?

eager wren
#

๐Ÿ‘‹ 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

crude acorn
#

ok i hope so but how does one test a full checkout process then? it would stop on the payment step

eager wren
#

you just need to test it manually once e2e

#

like what exactly are you trying to test? (I mean after the payment)

crude acorn
#

i want to test the whole checkout process - if the flow still works.. thats not that crazy - right?

eager wren
#

you can fake the payment step

crude acorn
#

basically if the confirmation comes through

eager wren
#

mocking services is a very common practice in testing

crude acorn
#

yes but this also has to do with user input..

eager wren
#

in testing you can mock these as well

crude acorn
#

i saw there is a stripe-mock docker container.. would that help with elements?

eager wren
#

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

crude acorn
#

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