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

E2E test for pre-authorisation flows #55

Open
8 tasks
gcatanese opened this issue Oct 10, 2023 · 0 comments
Open
8 tasks

E2E test for pre-authorisation flows #55

gcatanese opened this issue Oct 10, 2023 · 0 comments

Comments

@gcatanese
Copy link
Contributor

As pointed out in #52 we don't have E2E tests that validate the possible flows.

Extend the E2E testing for the subscription use case to cover the following:

  • Verify that the admin view is visible after sending the webhook containing the merchantReference (AUTHORISATION eventcode)

  • Add adjustment test

  • Mock the AUTHORISATION_ADJUSTMENT webhook and verify that the admin view has changed
    - [x] Add extension test (it's similar to adjustment, unless we want to test this specifically, I'd leave this one out)

  • Add capture test (verify that the next screen is green)

  • Mock CAPTURE webhook

  • Add reversal test (verify that the next screen is green)

  • Mock the CANCEL_OR_REFUND webhook

  • Mock CAPTURE_FAILED (or CAPTURE, success=false) webhook and verify that we have a reversed item in the admin view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant