#peter-belbin_unexpected
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/1273027324937502781
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- peter-belbin_unexpected, 6 days ago, 21 messages
Hi there
hey
Ah, I think we've chatted about UI testing before ๐
Also tried using the Payment Element, and this made absolutely no difference in terms of whether the responses were received or not.
it's entirely possible!
I don't think I'll be able to help here. I recommend working with Storybook on this. If I understand this correctly, the CardElement (and PaymentElement) are rendering as expected but it's the tool you're using on top of these that's failing to take a screenshot of what's displayed in the browser?
no. this is not correct.
For a long time, we've been able to capture the rendered Stripe elements on our web pages.
What do you mean by capture exactly?
by 'capture', I mean: get a png image of a webpage that happens to have some portion of it that has the Card Element in it. That's what storycap does.
Storybook is a web server tooling that generates a website having various particular scenarios represented. If I start Storybook and use the website manually, the pages render with the Card Element just fine.
However, to automate that process, something called storycap is used to remote-control a browser to visit each of the storybook website 'story' pages, and capture each as a PNG image.
storycap uses puppeteer to remote-control a browser instance.
So, when this capture process is running is when we're finding, as I say, only recently, that there appear now to be issues of the browser sometimes not receiving a response to the request for one or more Stripe web requests. Of course, since the browser taking the screenshot has to wait for all content to be available, it's gumming up the works.
Is there any sort of delay you can introduce on the storycap side?
Or listen for the ready event before attempting to capture an image? https://docs.stripe.com/js/element/events/on_ready
Have you given the sample GitHub project a try to see it happening for yourself?
No, I'm not going to run this since the issue seems to lie outside of Stripe
Well, you know, I was asked by people from Stripe to provide a minimal reproduction that demonstrates the issue so that it could be looked at. And you're now telling me that you aren't going to look at it. What the what???
ie: if you go and look at some of the other threads, you'll find that I was asked to produce a minimal reproduction of the problem.
Yep, I found the thread: https://discord.com/channels/841573134531821608/1270812985434050721. I think my teammate meant that if there's a standalone page where we can reproduce the behavior you're seeing (some test environment that you maintain and a URL you can link us to where we can render/see the CardElement), we could help test
We're not goint to test storycap functionality, though
The project also has the starting of a storybook server that hosts a simple test story, which is what's also able to be accessed using a normal browser.