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

[CYPRESS] Add e2e test for card payment for Adyen Connector for a Successful Flow #6082

Open
Sanskar2001 opened this issue Sep 19, 2024 · 23 comments · May be fixed by juspay/hyperswitch-web#749
Assignees
Labels
E-easy Effort: Should be easy to implement and would make a good first PR good first issue Good for newcomers hacktoberfest Issues that are up for grabs for Hacktoberfest participants help wanted Extra attention is needed typescript Issues that require knowledge of typescript.

Comments

@Sanskar2001
Copy link

Sanskar2001 commented Sep 19, 2024

The Hyperswitch SDK is a versatile tool built to streamline payment integration for developers. It simplifies the process of adding multiple payment methods, allowing you to quickly implement support for various gateways without the need to manually integrate each one. With Hyperswitch, you can efficiently manage payments across platforms, reducing complexity and boosting development speed.

Pre-requisites:
Please follow the README for guidelines on file structure, formatting and instructions on how to set up and run Cypress.

Description:

This task involves adding a cypress e2e test for card payment for Adyen Connector for a Successful Flow
🔨 Possible Implementation
Locate the element for this payment method, perform the click action on it and assert whether redirection happens success.

Contribution Guidelines:

  • Fork the repository and create a new branch for your work.
  • Ensure the WebSDK follows best practices for API integration and field rendering.
  • Write clean, well-documented code with clear commit messages.
  • Make sure to follow our coding standards and contribution guidelines.

Helpful Resources:

If you have any questions or need help getting started, feel free to ask in the comments!

🔖 Note:
Once assigned, please drop a mail for required credentials at [email protected]

Submission Process:

  • Ask the maintainers for assignment of the issue, you can request for assignment by commenting on the issue itself.
  • Once assigned, submit a pull request (PR).
  • Maintainers will review and provide feedback, if any.
  • Maintainers can unassign issues due to inactivity, read more here.
  • For this issue, please submit a PR on @juspay/hyperswitch-web repo, and link it to the issue.
    Refer here for Terms and conditions for the contest.
@Sanskar2001 Sanskar2001 added the good first issue Good for newcomers label Sep 19, 2024
@Sanskar2001 Sanskar2001 changed the title Add e2e test for Adyen Cards for a Success Flow Add e2e test for card payment for Adyen Connector for a Failure Flow Sep 19, 2024
@Sanskar2001 Sanskar2001 changed the title Add e2e test for card payment for Adyen Connector for a Failure Flow Add e2e test for card payment for Adyen Connector for a Successful Flow Sep 23, 2024
@PritishBudhiraja PritishBudhiraja changed the title Add e2e test for card payment for Adyen Connector for a Successful Flow [TESTING] - Add e2e test for card payment for Adyen Connector for a Successful Flow Sep 23, 2024
@PritishBudhiraja PritishBudhiraja added the hacktoberfest Issues that are up for grabs for Hacktoberfest participants label Sep 23, 2024
@Sanskar2001 Sanskar2001 changed the title [TESTING] - Add e2e test for card payment for Adyen Connector for a Successful Flow [CYPRESS] Add e2e test for card payment for Adyen Connector for a Successful Flow Sep 25, 2024
@gorakhnathy7 gorakhnathy7 transferred this issue from juspay/hyperswitch-web Sep 25, 2024
@gorakhnathy7 gorakhnathy7 added E-easy Effort: Should be easy to implement and would make a good first PR typescript Issues that require knowledge of typescript. help wanted Extra attention is needed labels Sep 25, 2024
@ayan-joshi
Copy link
Contributor

@Sanskar2001 I would like to work on this issue !

@gorakhnathy7
Copy link
Collaborator

@ayan-joshi Assigning you this issue.
Thanks!

@gorakhnathy7
Copy link
Collaborator

gorakhnathy7 commented Oct 2, 2024

Hey @ayan-joshi as you are already assigned this issue.
Please let us know, which one would you like to work on?

By default i can unassign this issue, and you can keep working on the earlier mentioned issue.

@ayan-joshi
Copy link
Contributor

@gorakhnathy7 okay at once we can work on 1 issue only ?

@ayan-joshi
Copy link
Contributor

okay then I'll solve that first and then work on this later if possible @gorakhnathy7

@gorakhnathy7
Copy link
Collaborator

Sure @ayan-joshi , But if someone asks to assign this issue before that, i'll be assigning to that person.

@shubhamchasing
Copy link

shubhamchasing commented Oct 4, 2024

Hi @gorakhnathy7, I have requested #6039 but a fellow contributor requested it before me, Please assign this issue to me if you gonna assign it to him. This would be my first contribution to Hyperswitch.

@gorakhnathy7
Copy link
Collaborator

Hey @shubhamchasing Assigning this to you.
Thanks for your interest!

@shubhamchasing
Copy link

Thanks @gorakhnathy7

@shubhamchasing
Copy link

@gorakhnathy7 I have a query if this issue is related to hyperswitch-web then why this issue is not in the respective repo?

@gorakhnathy7
Copy link
Collaborator

@gorakhnathy7 I have a query if this issue is related to hyperswitch-web then why this issue is not in the respective repo?

Hey @shubhamchasing We have done this to ensure ease for participants to find out all issues related to Hyperswitch at one place, And for each issue we have mentioned in the issue description where they should be raising the PR.

@shubhamchasing
Copy link

@gorakhnathy7 I have emailed but have not received the credentials yet

@gorakhnathy7
Copy link
Collaborator

Checking it

@Sanskar2001
Copy link
Author

@preetamrevankar could you please share the creds?

@shubhamchasing
Copy link

@gorakhnathy7 Is there a specific format for requesting creds? If that is the case please let me know, as I have not got the creds yet.

Thanks for your help!

@shubhamchasing
Copy link

Hi guys tagging you as it has been more than 10 days and it is blocking my contribution to hyperswitch
@Sanskar2001 @gorakhnathy7 @preetamrevankar

@gorakhnathy7
Copy link
Collaborator

Hey @shubhamchasing Apologies for the inconvenience here, looking into it.

@preetamrevankar
Copy link
Contributor

preetamrevankar commented Oct 15, 2024 via email

@shubhamchasing
Copy link

Thank you so much

@shubhamchasing
Copy link

shubhamchasing commented Oct 19, 2024

@gorakhnathy7 Hey sorry to disturb you, can you please help me here?

I tested adyen test cards in the demo app when it is a 3DS card then it only redirects to the Adyen checkout simulator and if it is a normal debit/credit card it does not redirect and complete the payment, how I am supposed to add test cases when it is not an Adyen checkout simulator.

3D Secure 2 VISA
number: 4917 6100 0000 0000 expiry date: 03/30 CVV: 737
https://docs.adyen.com/development-resources/testing/test-card-numbers/#3d-secure-2

VISA Commercial Debit
number: 4005 5190 0000 0006 expiry date: 03/30 CVV: 737
https://docs.adyen.com/development-resources/testing/test-card-numbers/#visa

@shubhamchasing
Copy link

@gorakhnathy7 Hey sorry to disturb you, can you please help me here?

I tested adyen test cards in the demo app when it is a 3DS card then it only redirects to the Adyen checkout simulator and if it is a normal debit/credit card it does not redirect and complete the payment, how I am supposed to add test cases when it is not an Adyen checkout simulator.

3D Secure 2 VISA number: 4917 6100 0000 0000 expiry date: 03/30 CVV: 737 https://docs.adyen.com/development-resources/testing/test-card-numbers/#3d-secure-2

VISA Commercial Debit number: 4005 5190 0000 0006 expiry date: 03/30 CVV: 737 https://docs.adyen.com/development-resources/testing/test-card-numbers/#visa

@Sanskar2001 I understand you must be busy but can you help here?

@Sanskar2001
Copy link
Author

@shubhamchasing You can use a 3DS test card to trigger the payment. What you're doing is correct—just add an assertion to check if the redirection to the Adyen checkout simulator occurs.

@shubhamchasing
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Effort: Should be easy to implement and would make a good first PR good first issue Good for newcomers hacktoberfest Issues that are up for grabs for Hacktoberfest participants help wanted Extra attention is needed typescript Issues that require knowledge of typescript.
Projects
None yet
6 participants