Skip to content

bahmutov/test-react-stripe-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stripe React Demo

Copied from https://codesandbox.io/s/react-stripe-official-q1loc from https://github.com/stripe/react-stripe-js

Uses cypress-react-unit-test v2

Demo

See spec files src/components/demos/*.cy-spec.js

TODO:

  • ✅ add iframe commands to reach into the Stripe's iframe to type the CC number (via cypress-iframe)
  • figure out why I cannot spy or stub stripe.createPaymentMethod method. Seems there is a weird getter that does not allow setting new method property
  • figure out XHR interception against the Stripe's API

About

Test Stripe React components using Cypress

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published