#geekcorner_code

1 messages ยท Page 1 of 1 (latest)

elfin cometBOT
#

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

vale sonnet
#

hey there ๐Ÿ‘‹ taking a look at this

craggy wedge
#

the code i've provided is a minimal sample, of course my actual component actually does something on confirm

vale sonnet
#

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

craggy wedge
#

basically just a way to make sure they render properly

vale sonnet
#

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

craggy wedge
#

hmm alright

vale sonnet
#

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"

craggy wedge
#

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

vale sonnet
#

yeah that makes sense - if you run into any more specific blockers or errors we'd be glad to help unblock you!

craggy wedge
#

alright!

#

have a good day/evening/whatever time it is for you

vale sonnet
#

thanks ๐Ÿฅณ same to you!

craggy wedge
#

also some feedback if you don't mind: allow the code to be in code blocks in the bot's message

vale sonnet
#

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!