openfoodnetwork
openfoodnetwork copied to clipboard
Automate testing of dummy Stripe cards
What we should change and why (this is tech debt)
Having automated tests with different Stripe cards and scenarios on the CI build could potentially save time and increase test accuracy.
Context
Opening this issue to follow-up on a suggestion from @Matt-Yorkley -> Thanks :-)
There are plenty of different Stripe cards: https://stripe.com/docs/testing#cards
Aside from the long list with country specific cards, there are several which originate particular errors. An idea would be to understand if and how to automate the testing procedure with as many cards and test cases as possible, thus covering more scenarios while avoiding manual testing.
Impact and timeline
this is related to #4639