Skip to content
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

Merged

Conversation

JFSGDS
Copy link
Contributor

@JFSGDS JFSGDS commented Oct 18, 2023

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.

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.
@JFSGDS JFSGDS marked this pull request as ready for review October 19, 2023 15:19
@JFSGDS JFSGDS requested a review from alexbishop1 October 19, 2023 15:19
])
})

it('should load the mock cards page and show non stripe card', () => {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.
@JFSGDS JFSGDS requested a review from alexbishop1 October 20, 2023 09:28
@JFSGDS JFSGDS merged commit 2807062 into master Oct 20, 2023
5 checks passed
@JFSGDS JFSGDS deleted the PP-9916-change-test-card-number-in-stripe-test-accounts branch October 20, 2023 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants