#geekcorner_code
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/1461701772853641288
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there ๐ taking a look at this
the code i've provided is a minimal sample, of course my actual component actually does something on confirm
could you share some more context on what your underlying goal is with this testing?
for context, we don't have a standard recommended approach to unit testing because our components are all unit tested on our side
basically just a way to make sure they render properly
ok! well that's something that you're welcome to attempt through any approach that you devise, but our official stance is that this kind of testing isn't required/recommended
so I'm afraid I can't really share a recommendation
hmm alright
this is indirectly mentioned in our docs here:
https://docs.stripe.com/automated-testing
"Front-end interfaces, such as Stripe Checkout or the Payment Element, have security measures in place that prevent automated testing"
yeah i'm not trying to even test the component itself if you see what i mean
it's more about testing my integration around it
but yeah alright i'll try to mock the component like i did earlier
yeah that makes sense - if you run into any more specific blockers or errors we'd be glad to help unblock you!
thanks ๐ฅณ same to you!
also some feedback if you don't mind: allow the code to be in code blocks in the bot's message
ah yes that's a known limitation - it works within the thread replies, but not in the bot/form as you mentioned
I'll raise this again with the team!