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

ci(cypress): Fix card expiry for savecard flows #4585

Merged
merged 2 commits into from May 9, 2024
Merged

Conversation

Gnanasundari24
Copy link
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

-Resolved an issue in the savecard flow where card expiry was incorrectly sourced from the confirmBody.json, resulting in failures. Now, only the payment_token is utilized, ensuring successful payment transactions.
-This pull request includes refactoring of the card_pm details to accommodate the addition of banks and wallet flows.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

To enhance test coverage for wallet and bank redirect flows.

How did you test it?

Ran the test manually
Screenshot 2024-05-08 at 3 56 21 PM

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@Gnanasundari24 Gnanasundari24 added this to the May 2024 Release milestone May 8, 2024
@Gnanasundari24 Gnanasundari24 self-assigned this May 8, 2024
@Gnanasundari24 Gnanasundari24 requested a review from a team as a code owner May 8, 2024 10:40
@Gnanasundari24 Gnanasundari24 linked an issue May 8, 2024 that may be closed by this pull request
2 tasks
@@ -295,20 +295,20 @@ Cypress.Commands.add("createConfirmPaymentTest", (createConfirmPaymentBody, deta
});

// This is consequent saved card payment confirm call test(Using payment token)
Cypress.Commands.add("saveCardConfirmCallTest", (confirmBody, det, globalState) => {
Cypress.Commands.add("saveCardConfirmCallTest", (SaveCardConfirmBody,det,globalState) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: variable naming, can be taken in a separate PR.

Suggested change
Cypress.Commands.add("saveCardConfirmCallTest", (SaveCardConfirmBody,det,globalState) => {
Cypress.Commands.add("saveCardConfirmCallTest", (saveCardConfirmBody,det,globalState) => {

@SanchithHegde SanchithHegde added this pull request to the merge queue May 9, 2024
Merged via the queue into main with commit c0bb117 May 9, 2024
11 of 15 checks passed
@SanchithHegde SanchithHegde deleted the walletflow branch May 9, 2024 13:40
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.

[BUG] Fix card expiry for savecard flows in cypresss
4 participants