-
Notifications
You must be signed in to change notification settings - Fork 4.2k
fix(cypress): address cybersource redirection inconsistency #7057
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
Conversation
force it to wait until the page loads. this is more sophisticated, reliable, and safer
Changed Files
|
…urce-inconsistency * 'main' of github.com:juspay/hyperswitch: chore(version): 2025.01.20.0 fix(relay): populate connector metadata in the refunds flow (#7045) fix(connector): [NETCETERA] add accept-language in browser_information for netcetera authentication request (#7059) chore: Update readme with juspay's vision, product offering, architecture diagram, setup steps and output (#7024) chore: update creds (#7054)
@@ -14,7 +14,7 @@ env: | |||
CARGO_INCREMENTAL: 0 | |||
CARGO_NET_RETRY: 10 | |||
PAYMENTS_CONNECTORS: "cybersource stripe" | |||
PAYOUTS_CONNECTORS: "adyenplatform wise" | |||
PAYOUTS_CONNECTORS: "wise" |
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.
we've removed adyenplatform
from running since connector throws 5xx
on("after:spec", (spec, results) => { | ||
if (results && results.video) { | ||
// Do we have failures for any retry attempts? | ||
const failures = results.tests.some((test) => | ||
test.attempts.some((attempt) => attempt.state === "failed") | ||
); | ||
if (!failures) { | ||
// delete the video if the spec passed and no tests retried | ||
fs.unlinkSync(results.video); | ||
} | ||
} | ||
}); |
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.
we've enabled video recording in L63
. Since we do not want to keep the whole recording but only for the tests that fail, this section is necessary to keep the report clean
@@ -12,7 +12,7 @@ const successfulNo3DSCardDetails = { | |||
}; | |||
|
|||
const successfulThreeDSTestCardDetails = { | |||
card_number: "4000000000001091", | |||
card_number: "4000000000002701", |
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.
this card forces cybersource 3ds to go through the friction less flow
} else if (connectorId === "cybersource") { | ||
cy.url({ timeout: TIMEOUT }).should("include", expected_url.origin); | ||
return; |
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.
frictionless flow.
@likhinbopanna, do you think we need return
here?
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.
Not necessarily
…urce-inconsistency * 'main' of github.com:juspay/hyperswitch: 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)
39e1481
to
f74edab
Compare
Co-authored-by: likhinbopanna <[email protected]>
This reverts commit f74edab.
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.
CI workflow changes look good to me!
b035c3f
}); | ||
} else if (connectorId === "cybersource") { | ||
cy.url({ timeout: TIMEOUT }).should("include", expected_url.origin); | ||
return; // this is mandatory, else refunds section will fail with unhandled promise rejections even though it is handled |
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.
i want this to be removed. will consider this as a separate pr
…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) ...
Type of Change
Description
frictionless
flow without challenge which results in certain expected elements to go missing resulting in respective tests to failfrictionless
card for 3dsadyenplatform
connector from running in github cicloses #7058
Additional Changes
Motivation and Context
ci checks
How did you test it?
this issue is not reproducible in local but only in github ci. so, the ci check should never fail!
Checklist
npm run format
npm run lint