#foxhop-elements-automation

1 messages · Page 1 of 1 (latest)

meager oak
#

hello, are you asking about automating Stripe Elements UI?

spark dock
#

yes, I have functional tests which expect to be able to submit the Element form to create a Customer's PaymentMethod

#

And further on in the functional test we make a charge & verify both sides

meager oak
#

yeah there's no real guide for this

spark dock
#

res = self.testapp.post(
"/billing/add-card?shop_id={}".format(shop.id),
{
"email": self.user2.email,
"stripeToken": "tok_visa",
},
)

#

that's the old test code, suppose "tok_visa" isn't a way to mock the response

meager oak
#

ah I see, you can use the newer token values like pm_card_visa

spark dock
#

Do you have a link to that?

meager oak