-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PP-9916 Change test card number in Stripe test accounts #4146
PP-9916 Change test card number in Stripe test accounts #4146
Conversation
Update ‘Mock card numbers’ template to test for ‘stripe’ account and display UK issued test card.
Update '.secrets.baseline' to include credentials for new cypress 'Pay demo/Mock cards' test.
Add Cypresss test to check 'Mock card' screen shows correct card number for non Stripe accounts.
]) | ||
}) | ||
|
||
it('should load the mock cards page and show non stripe card', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presumably we can have a version of this test that sets paymentProvider
to stripe
and checks we output the right card number for Stripe too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Test to check correct card number is displayed for Stripe accounts now added. Note, unable to land directly on the Dashboard page for a Stripe account as this route returned a ‘403 Forbidden’ status. Landing on the Stripe account’s Settings page and then navigating to the Dashboard pages worked but this probably needs refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it’s fine — the amount of extra code to do the navigation is not huge and it’s not worth investing too much more time into this.
Add Cypresss test to check 'Mock card' screen shows correct card number for Stripe accounts.
WHAT
Change test card number in Stripe test accounts to UK issued test card
https://payments-platform.atlassian.net/browse/PP-9916
HOW
Update ‘Mock card numbers’ template to test for ‘stripe’ account and display UK issued test card.