ci(cypress): Add routing testcases#5571
Conversation
| expect(response.headers["content-type"]).to.include("application/json"); | ||
| if (response.status === 200) { | ||
| globalState.set("paymentID", paymentIntentID); | ||
| globalState.set("connectorId", response.body.connector); |
There was a problem hiding this comment.
Why?
This is not needed as globalState will always have connectorId as it is setup even before the tests start to run (you can check State.js for this).
There was a problem hiding this comment.
For routing there is no where we are get to know which connector the testcases are running. Do you remember we already discussed about this
There was a problem hiding this comment.
For routing there is no where we are get to know which connector the testcases are running.
Okay, but how are we getting to know about this? We are just setting the value here
There was a problem hiding this comment.
Whenever the confirm call happened it get know which connector it went in and handle redirection case will happen
There was a problem hiding this comment.
Let's keep this change. Can you also do the same for PML? This is very much needed.
cypress-tests/cypress/e2e/RoutingTest/00000-PriorityRouting.cy.js
Outdated
Show resolved
Hide resolved
cypress-tests/cypress/e2e/RoutingTest/00000-PriorityRouting.cy.js
Outdated
Show resolved
Hide resolved
* 'main' of github.com:juspay/hyperswitch: feat(connector): [FISERVEMEA] Integrate cards (#5672) ci(cypress): Add routing testcases (#5571) fix(router): skip external three_ds flow for recurring payments (#5730) refactor(customer_v2): fixed customer_v2 create panic issue (#5699) feat(user_roles): support switch for new hierarchy (#5692) refactor(router): add domain type for merchant_connector_account id (#5685) refactor(cypress_tests): handle api keys check in api key list call (#5719) feat(connector): [NEXIXPAY] Add template code (#5684) refactor(connector): [itau] refactor error reason and code mapping for itau (#5718) fix(core): fix merchant connector account create for v2 (#5716) chore(version): 2024.08.28.0 fix(routing): fix routing routes to deserialise correctly (#5724) feat(euclid): add a new variant in payment type i.e ppt_mandate (#5681) feat(core): Add mTLS certificates for each request (#5636)
Type of Change
Description
How did you test it?
Ran the testcases in sandbox
Stripe

Routing

Checklist
cargo +nightly fmt --allcargo clippy