-
Notifications
You must be signed in to change notification settings - Fork 60
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
test: Add E2E card payment failure flow for Adyen connector. #752
base: main
Are you sure you want to change the base?
Conversation
"#orca-payment-element-iframeRef-orca-elements-payment-element-payment-element"; | ||
const adyenIframeSelector = ".adyen-checkout__iframe--threeDSIframe"; | ||
|
||
changeObjectKeyValue(createPaymentBody, "profile_id", Cypress.env("PROFILE_ID")); |
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.
changeObjectKeyValue(createPaymentBody, "profile_id", Cypress.env("PROFILE_ID")); | |
changeObjectKeyValue(createPaymentBody, "profile_id", connectorProfileIdMapping.get(connectorEnum.ADYEN)); |
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.
Hi, I'm having problem running this command connectorProfileIdMapping it is not defined anywhere in commands or types.ts .. where do I need to import it from?
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.
Please take a pull from main
Sorry, while resolving some conflicts I accidentally closed the PR. could you pls reopen it @gorakhnathy7 @Sanskar2001 |
I've made the requested changes. pls review @Sanskar2001 @seekshiva |
Type of Change
Fixes issue: juspay/hyperswitch#6081.
Description
This PR implements handling of failure cases in the Adyen card payment flow:
Test cases it checks:
orca-payment-element
iframe loads successfully.How did you test it?
I tested the new features by implementing automated tests using Cypress. The tests included:
Checklist
npm run re:build