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): Add PML test and Dynamic Fields Test for Novalnet #6544

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

cookieg13
Copy link
Contributor

@cookieg13 cookieg13 commented Nov 12, 2024

Type of Change

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

Description

Added PML test for Novalnet

Additional Changes

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

Motivation and Context

#6463 (comment)

How did you test it?

Ran Cypress Test locally:
PaymentMethodListTests
Screenshot 2025-01-02 at 15 38 46

DynamicFields
Screenshot 2025-01-02 at 16 20 43

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

@cookieg13 cookieg13 self-assigned this Nov 12, 2024
@cookieg13 cookieg13 requested review from a team as code owners November 12, 2024 11:27
Copy link

semanticdiff-com bot commented Nov 12, 2024

@cookieg13 cookieg13 force-pushed the addPMLTestForNovalnet branch from 2082bb0 to e9a3720 Compare November 12, 2024 13:27
@cookieg13 cookieg13 changed the title Add pml test for novalnet Ci(Cypress): Add PML test for Novalnet Nov 12, 2024
@cookieg13 cookieg13 force-pushed the addPMLTestForNovalnet branch from e9a3720 to a414b1d Compare November 12, 2024 13:29
@cookieg13 cookieg13 removed the request for review from a team November 12, 2024 13:32
@cookieg13 cookieg13 force-pushed the addPMLTestForNovalnet branch from a414b1d to 1011c8e Compare December 4, 2024 11:28
@pixincreate pixincreate added the S-needs-conflict-resolution Status: This PR needs conflicts to be resolved by the author label Dec 16, 2024
@pixincreate
Copy link
Member

hey, can you resolve the conflicts?

@likhinbopanna
Copy link
Contributor

Hey @cookieg13
Can you also add the dynamic fields test cases ?

@cookieg13 cookieg13 force-pushed the addPMLTestForNovalnet branch 2 times, most recently from b83fdbe to 35b661b Compare January 2, 2025 10:54

// creating payment with currency as USD and no billing email
// billing.email is mandatory for novalnet
it("create-payment-call-test", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Haven't you added positive test case for novalnet?
Because I can see test case for stripe only

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hey @likhinbopanna I now added one positive case for Novalnet, and one positive case for stripe. Would that be sufficient?
Screenshot 2025-01-03 at 13 40 06

fixtures.createConnectorBody,
cardCreditEnabledInEur,
globalState,
"novalnet",
Copy link
Member

Choose a reason for hiding this comment

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

are the api keys updated in the creds file? if not, pml tests are bound to fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes!

Copy link
Member

Choose a reason for hiding this comment

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

just checked, no it is not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure checking! I assumed you meant the local creds.json

cypress-tests/cypress/e2e/PaymentUtils/Novalnet.js Outdated Show resolved Hide resolved
// payment method list should only have credit with stripe
it("payment-method-list-call-test", () => {
const data =
getConnectorDetails("stripe")["pm_list"]["PmListResponse"][
Copy link
Member

@pixincreate pixincreate Jan 3, 2025

Choose a reason for hiding this comment

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

if not asking too much, do you mind renaming the Stripe.js file to Connector.js since it is more meaningful and common across all the connectors from my unerstanding?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is done!

@pixincreate pixincreate added S-waiting-on-review Status: This PR has been implemented and needs to be reviewed and removed S-needs-conflict-resolution Status: This PR needs conflicts to be resolved by the author labels Jan 3, 2025
@cookieg13 cookieg13 force-pushed the addPMLTestForNovalnet branch from 916cfd2 to 55741f7 Compare January 3, 2025 08:08
likhinbopanna
likhinbopanna previously approved these changes Jan 3, 2025
@pixincreate pixincreate added the A-CI-CD Area: Continuous Integration/Deployment label Jan 3, 2025
@cookieg13 cookieg13 changed the title Ci(Cypress): Add PML test for Novalnet Ci(Cypress): Add PML test and Dynamic Fields Test for Novalnet Jan 3, 2025
@likhinbopanna likhinbopanna added this pull request to the merge queue Jan 6, 2025
Merged via the queue into main with commit 638e1f2 Jan 6, 2025
21 of 23 checks passed
@likhinbopanna likhinbopanna deleted the addPMLTestForNovalnet branch January 6, 2025 07:27
pixincreate added a commit to Ankesh2004/hyperswitch that referenced this pull request Jan 9, 2025
…r-verifyurl-in-redirection-handler

* 'main' of github.com:juspay/hyperswitch: (30 commits)
  test(cypress): add test for In Memory Cache (juspay#6961)
  chore(version): 2025.01.09.1
  fix(dummyconnector): add tenant id in dummyconnector requests (juspay#7008)
  chore(version): 2025.01.09.0
  fix(cypress): backup and restore sessions when using user apis (juspay#6978)
  feat(users): handle edge features for users in tenancy (juspay#6990)
  chore(dynamic-fields): [Worldpay] update dynamic fields for payments (juspay#7002)
  chore(version): 2025.01.08.0
  fix: consider status of payment method before filtering wallets in list pm (juspay#7004)
  feat(core): add columns unified error code and error message in refund table (juspay#6933)
  feat(connector): [Fiuu] Consume transaction id for error cases for Fiuu (juspay#6998)
  docs(cypress): update cypress documentation (juspay#6956)
  chore(version): 2025.01.07.0
  chore(keymanager): add tenant-id to keymanager requests (juspay#6968)
  ci(cypress): Add Session Token Testcases (juspay#6683)
  Ci(Cypress): Add PML test and Dynamic Fields Test for Novalnet (juspay#6544)
  chore(version): 2025.01.06.0
  ci(cypress): fix adyen sofort in cypress (juspay#6984)
  chore: add migrations for Currency type in DB (juspay#6980)
  chore(version): 2025.01.03.0
  ...
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 S-waiting-on-review Status: This PR has been implemented and needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants