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): Enhance Cybersource Testcases #6285

Merged
merged 39 commits into from
Nov 11, 2024
Merged

Ci(Cypress): Enhance Cybersource Testcases #6285

merged 39 commits into from
Nov 11, 2024

Conversation

Gnanasundari24
Copy link
Contributor

@Gnanasundari24 Gnanasundari24 commented Oct 10, 2024

Type of Change

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

Description

Added field level verifications for payment retrieve , payment intent , payment attempt , List payment methods
Added Business Profile cases
Added Payment methods Test cases
Added Connector agnostic Test cases

Additional Changes

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

Motivation and Context

How did you test it?

Screenshot 2024-10-09 at 1 50 41 PM Screenshot 2024-10-10 at 12 42 51 PM image image
  • Cybersource
Screenshot 2024-11-07 at 12 20 16 PM
  • Stripe
Screenshot 2024-11-07 at 3 17 44 PM
  • Adyen
Screenshot 2024-11-07 at 4 58 14 PM
  • Bluesnap
Screenshot 2024-11-07 at 5 05 36 PM
  • Paypal
Screenshot 2024-11-07 at 3 17 44 PM
  • nmi
Screenshot 2024-11-07 at 6 58 19 PM

-Trustpay
Screenshot 2024-11-07 at 8 06 59 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 the A-CI-CD Area: Continuous Integration/Deployment label Oct 10, 2024
@Gnanasundari24 Gnanasundari24 self-assigned this Oct 10, 2024
@Gnanasundari24 Gnanasundari24 requested a review from a team as a code owner October 10, 2024 07:14
Copy link

semanticdiff-com bot commented Oct 10, 2024

Review changes with  SemanticDiff

Changed Files
File Status
  cypress-tests/cypress/e2e/PaymentTest/00007-VoidPayment.cy.js  100% smaller
  cypress-tests/cypress/e2e/PaymentTest/00022-PaymentMethods.cy.js  40% smaller
  cypress-tests/cypress/support/redirectionHandler.js  17% smaller
  cypress-tests/cypress/fixtures/create-connector-body.json  12% smaller
  cypress-tests/cypress/support/commands.js  3% smaller
  cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js  1% smaller
  cypress-tests/cypress/e2e/PaymentTest/00000-CoreFlows.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00001-AccountCreate.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00002-CustomerCreate.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00003-ConnectorCreate.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00004-NoThreeDSAutoCapture.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00005-ThreeDSAutoCapture.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00006-NoThreeDSManualCapture.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00008-SyncPayment.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00009-RefundPayment.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00010-SyncRefund.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00011-CreateSingleuseMandate.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00012-CreateMultiuseMandate.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00013-ListAndRevokeMandate.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00014-SaveCardFlow.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00015-ZeroAuthMandate.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00016-ThreeDSManualCapture.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00017-BankTransfers.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00018-BankRedirect.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00019-MandatesUsingPMID.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00020-UPI.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00021-Variations.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentTest/00023-ConnectorAgnostic.cy.js  0% smaller
  cypress-tests/cypress/e2e/PaymentUtils/Adyen.js  0% smaller
  cypress-tests/cypress/e2e/PaymentUtils/BankOfAmerica.js  0% smaller
  cypress-tests/cypress/e2e/PaymentUtils/Bluesnap.js  0% smaller
  cypress-tests/cypress/e2e/PaymentUtils/Commons.js  0% smaller
  cypress-tests/cypress/e2e/PaymentUtils/Nmi.js  0% smaller
  cypress-tests/cypress/e2e/PaymentUtils/Paypal.js  0% smaller
  cypress-tests/cypress/e2e/PaymentUtils/Stripe.js  0% smaller
  cypress-tests/cypress/e2e/PaymentUtils/Trustpay.js  0% smaller
  cypress-tests/cypress/fixtures/create-business-profile.json  0% smaller
  cypress-tests/cypress/fixtures/create-payment-body.json  0% smaller
  cypress-tests/cypress/fixtures/imports.js  0% smaller
  cypress-tests/cypress/fixtures/session-token.json  0% smaller
  cypress-tests/cypress/fixtures/update-business-profile.json  0% smaller

@Gnanasundari24 Gnanasundari24 changed the title CI(Cypress): Field level assertion for customer and customer paymentmethod list CI(Cypress): Enhance Cybersource Testcases Oct 10, 2024
@likhinbopanna likhinbopanna changed the title CI(Cypress): Enhance Cybersource Testcases Ci(Cypress): Enhance Cybersource Testcases Oct 10, 2024
@pixincreate
Copy link
Member

marking this pr as draft until ready.

@pixincreate pixincreate marked this pull request as draft October 10, 2024 15:50
@likhinbopanna likhinbopanna marked this pull request as ready for review October 17, 2024 16:16
cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
@likhinbopanna likhinbopanna removed request for a team November 8, 2024 15:28
Copy link
Member

@pixincreate pixincreate left a comment

Choose a reason for hiding this comment

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

other than that, LGTM

cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
cypress-tests/cypress/support/commands.js Outdated Show resolved Hide resolved
cypress-tests/cypress/e2e/PaymentUtils/Nmi.js Outdated Show resolved Hide resolved
pixincreate
pixincreate previously approved these changes Nov 11, 2024
pixincreate
pixincreate previously approved these changes Nov 11, 2024
pixincreate
pixincreate previously approved these changes Nov 11, 2024
jagan-jaya
jagan-jaya previously approved these changes Nov 11, 2024
pixincreate
pixincreate previously approved these changes Nov 11, 2024
@likhinbopanna likhinbopanna added this pull request to the merge queue Nov 11, 2024
Merged via the queue into main with commit b9f640b Nov 11, 2024
17 checks passed
@likhinbopanna likhinbopanna deleted the fb_usecase branch November 11, 2024 16:41
@pixincreate pixincreate removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI-CD Area: Continuous Integration/Deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants