Skip to main content
11 events
when toggle format what by license comment
Oct 20, 2020 at 10:19 comment added bigsee @DanielVianna very helpful, thanks! sounds less than ideal as you say, but better than nothing I guess!
Oct 17, 2020 at 1:51 comment added Daniel Vianna @bigsee Not ideal solution, What I have done was doing separate tests. We mock the response by creating a different UI button (changed back-end to support this), so we have one button that does real transaction and another for test mock. Then I have a second test in cypress which is a pure API call to Stripe checking API key and a 200 response, It's like a health monitor.
Oct 17, 2020 at 1:28 comment added Daniel Vianna @bigsee Yes. The solution is: don't test a third party.
Oct 16, 2020 at 13:16 comment added bigsee @DanielVianna I have the exact same issue. Did you ever find a solution for this?
Jan 20, 2020 at 21:04 history edited pavelsaman CC BY-SA 4.0
a typo fixed
Jan 20, 2020 at 20:25 vote accept Daniel Vianna
Jan 14, 2020 at 20:30 comment added pavelsaman I don't really know this Stripe, it might complicate things if there is no API as I understand from your comment. I mean it's not that you can go to an external page in Cypress, it's just not recommended.
Jan 14, 2020 at 16:02 comment added Daniel Vianna We do not visit, when you click on the button it goes to a redirect (it's not the old stripe popup) but the new stripe checkout is not API, but it's a redirect github.com/stripe-samples/checkout-one-time-payments
Jan 14, 2020 at 16:02 comment added Daniel Vianna There is another complication, we have our own receipt and invoice generated after the transaction is made, so if we stub the response, we cannot check our invoice
Jan 14, 2020 at 12:44 history edited pavelsaman CC BY-SA 4.0
added 2 characters in body
Jan 14, 2020 at 9:51 history answered pavelsaman CC BY-SA 4.0