stripe-archive / react-stripe-elements

Moved to stripe/react-stripe-js.
https://github.com/stripe/react-stripe-js
MIT License
3.03k stars 319 forks source link

Elements not able to testing (at least I tried on Cypress.js) . I had error when I try typing CardNumberElement and others too. #496

Closed mustafaerk closed 3 years ago

mustafaerk commented 4 years ago

Feature request or idea? Consider opening an API review!

Summary

I am getting error when I try to type numbers in CardNumberElement. I checked error because of "Pointer event:none" its make it untestable this inputs.

I could not see any props or something like that to change it.

Other information

rkrueger11 commented 4 years ago

Stripe uses iFrames to embed each element component due to PCI compliance. Unfortunately, Cypress does not handle iFrames well, but check out this article for ways to modify Cypress so that it works. https://medium.com/@michabahr/testing-stripe-elements-with-cypress-5a2fc17ab27b

sashko-stripe commented 3 years ago

Closing this as this project has migrated to React Stripe.js as of early 2020, which also has a somewhat different API. If you believe this is still important, please re-open it there.