mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
ci(cypress): fix worldpayxml, and deutschebank cypress test cases (#8193)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -2442,6 +2442,9 @@ Cypress.Commands.add(
|
||||
"payment_method_id"
|
||||
).to.include("pm_").and.to.not.be.null;
|
||||
|
||||
// Whenever, CIT Confirmations gets a payment status of `processing`, it does not yield the `payment_method_id` and hence the `paymentMethodId` in the `globalState` gets the value of `null`. And hence while confirming MIT, it yields an `error.message` of `"Json deserialize error: invalid type: null, expected a string at line 1 column 182"` which is basically because of the `null` value in `recurring_details.data` with `recurring_details.type` as `payment_method_id`. However, we get the `payment_method_id` while PSync, so we can assign it to the `globalState` here.
|
||||
globalState.set("paymentMethodId", response.body.payment_method_id);
|
||||
|
||||
const allowedActiveStatuses = [
|
||||
"succeeded",
|
||||
"requires_capture",
|
||||
|
||||
Reference in New Issue
Block a user