openfoodnetwork icon indicating copy to clipboard operation
openfoodnetwork copied to clipboard

[Spike] Automate Stripe SCA testing using VCR gem

Open filipefurtad0 opened this issue 3 years ago • 0 comments

What we should change and why (this is tech debt)

This spike is on accessing whether VCR gem is an appropriate approach to mock Stripe responses and improve our test suite by automation testing for 3D cards.

The ultimate goal is to come up with coverage with VCR for a simple test case as a proof of concept, like checking out through the shopfront, with the card 4000 0027 6000 3184.

If we're happy with this we can then move to extend this coverage to backoffice orders and testing for specific error messages, by placing orders with different cards. This will be the scope of further issues.

Context

This came up here #7753.

Impact and timeline

This impacts release testing, Rails upgrades and any code changes which touch this payment gateway.

filipefurtad0 avatar Jun 09 '21 10:06 filipefurtad0