-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
refactor(cypress): move memory cache tests out of payment for misc #6992
Conversation
0cc9122
to
960f4ef
Compare
5377539
to
76b0ffa
Compare
76b0ffa
to
08bfd71
Compare
08bfd71
to
c18cdbd
Compare
cypress-tests/cypress/e2e/spec/Routing/00001-VolumeBasedRouting.cy.js
Outdated
Show resolved
Hide resolved
cypress-tests/cypress/e2e/spec/Routing/00002-RuleBasedRouting.cy.js
Outdated
Show resolved
Hide resolved
…d-memory-cache * 'main' of github.com:juspay/hyperswitch: (38 commits) fix(cypress): uncaught exceptions thrown by `hyperswitch.io` (#7092) ci(workflows): Add code coverage reporting for v2 (#6884) chore(version): 2025.01.23.0 refactor: [CYBERSOURCE, BANKOFAMERICA, WELLSFARGO] Move code to crate hyperswitch_connectors (#6908) Documentation edits made through Mintlify web editor chore: enable 128-column-tables feature for diesel crate (#6857) feat(connector): [ADYEN ] Consume transaction id for PaymentsPreProcessing error (#7061) chore(version): 2025.01.22.0 feat(routing): Integrate global success rates (#6950) feat(email): Add mailhog by default in docker-compose for local smtp server (#6869) refactor: check allowed payment method types in enabled options (#7019) feat(router): add payment method-specific features to connector feature list (#6963) Refactor: Customer email and browser Information (#7034) feat(connectors): fiuu,novalnet,worldpay - extend NTI flows (#6946) fix(cypress): address cybersource redirection inconsistency (#7057) chore(version): 2025.01.21.0 refactor(payment-link): use shouldRemoveBeforeUnloadEvents flag for handling removal of beforeunload events through SDK (#7072) refactor(router): refactor ctp flow to fetch mca_id and get the connector creds instead of connector_name (#6859) chore(version): 2025.01.20.0 fix(relay): populate connector metadata in the refunds flow (#7045) ...
cy.updateConfigs(globalState, key, newValue); | ||
cy.fetchConfigs(globalState, key, newValue); | ||
cy.setConfigs(globalState, key, newValue, "UPDATE"); | ||
cy.setConfigs(globalState, key, value, "FETCH"); |
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.
check for newValue variable
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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6992 +/- ##
=======================================
Coverage ? 4.12%
=======================================
Files ? 1010
Lines ? 207403
Branches ? 0
=======================================
Hits ? 8548
Misses ? 198855
Partials ? 0 ☔ View full report in Codecov by Sentry. |
Type of Change
Description
This PR aims at refactoring:
cypress-tests
folder structure to reduce confusion and chaos in withine2e
directoryprevious:
. └── cypress ├── e2e │ ├── PaymentMethodListTest │ ├── PaymentMethodListUtils │ ├── PaymentTest │ ├── PaymentUtils │ ├── PayoutTest │ ├── PayoutUtils │ ├── RoutingTest │ └── RoutingUtils ├── fixtures ├── support └── utils
present:
reduce / remove duplicate commands in memory cache (config calls) by unifying them
payments
service tomisc
just so that, tests that are independent of business profile, mca, merchant account can be added here in the futurenew command addition to miscellaneous tests:
npm run cypress:misc
slight security improvement by forcing the api key to expire within
24
hourscloses #6993
documentation will be updated later
Additional Changes
Motivation and Context
Too many boiler plates, too many useless code
How did you test it?
stripe:
memory cache:
health check:
ci:
Checklist
npm run format
npm run lint